asp.net2005+javascript+SqlServer2000

爱她就要好好地呵护她

 

2006年11月22日

为DataGrid或者GridView或者DataList最前面增加一排序号

摘要: 使得能够按照1、2、3、4……这样的标记显示这比较容易,只需在绑定函数中添加这几行代码就可以了: //===========================添加序号===================== DataTable dt = ds.Tables[0]; DataColumn dc = dt.Columns.Add("nu... 阅读全文

posted @ 2006-11-22 11:01 g無s所p畏 阅读(785) 评论(3) 推荐(0) 编辑

.net2003中对DataGrid的常用操作

摘要: 在DataGrid中,实行多选删除操作:在模板列中添加CheckBox工具即可在后台代码中可以这样写: /// /// 删除所选车辆信息 /// /// /// protected void Button2_Click(object sender, EventArgs e) //Button2这是删除按钮 { foreach (Da... 阅读全文

posted @ 2006-11-22 10:53 g無s所p畏 阅读(326) 评论(0) 推荐(0) 编辑

2006年11月21日

.net2005中对asp.net中GridView的常用操作

摘要: 1、先绑定数据源 private void fBind() { SYJ.sqlServer f = new SYJ.sqlServer(SYJ.common.gDbConnStr("")); string strF = "select * from tFunctionWeb"; DataSet ds = f.sqlSelectDS(strF); ... 阅读全文

posted @ 2006-11-21 12:32 g無s所p畏 阅读(417) 评论(1) 推荐(0) 编辑

导航