摘要: 1、定义ht 为hashtableSystem.Collections.Hashtable ht = new Hashtable();2、向hashtable 中添加购物对象,如购买2本书 ht.add(book,1)3、把ht赋给 session session["bus"]=ht;如果已经有了可以先把ht[book]的值取出,然后再加1ht[book]=(int)ht[book]+1... 阅读全文
posted @ 2006-03-29 15:50 New Yang Bo Element 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Web Service 简单的说就是把以前的整程序分布式处理,然后后使用接口联合起来。如可以从一台服务器上调用另外一台服务器上的类和资源来使用。达到最佳使用效率。Web Service 有2个特征,注册和接口。可以使用HTTP-GET 和 HTTP-POST ,SOAP(简单对象访问协议,基于XML)访问Web Service 。WSDL(Web Service Description Lang... 阅读全文
posted @ 2006-03-29 15:25 New Yang Bo Element 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 分页protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e) { this.DataGrid1.CurrentPageIndex = e.NewPageIndex; this.datagridview(); }隐藏列 this.DataGr... 阅读全文
posted @ 2006-03-29 11:36 New Yang Bo Element 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 1、通过命令插入数据SqlCommand sqlcmd=new SqlComand("insert into table ("iditem","nameitem","sexitem")values(@id,@name,@sex)",con)2、创建参数sqlcom.Paramaters.Add(new SqlParamater("@id",SqlDbType.Varchar,10)); 即将插入... 阅读全文
posted @ 2006-03-29 09:42 New Yang Bo Element 阅读(655) 评论(0) 推荐(0) 编辑