摘要: #region Bind_Wpxx private void Bind_Wpxx(string ys, string lbdm, string xlid) { DataTable dt = DataAccess.DataWpxx.Get_Wpxx("", lbdm, xlid, "1", rb_zt.Text.Trim()); dg_user.DataSource = dt;//从这里开始 // iii页数 jj索引 myjls每页记录数 jls记录数 ys页数 zys总页数 zdys转到页数 int myjls = 10; if (tb_jls.Text.Trim() == "") tb_j 阅读全文
posted @ 2010-12-27 16:34 danball 阅读(289) 评论(0) 推荐(0) 编辑
摘要: ClientScript.RegisterStartupScript用来向前台页面注册script脚本,有两种重载方法,分别为ClientScript.RegisterStartupScript(Type type,string key ,string script);ClientScript.RegisterStartupScript(Type type,string key, string script,bool flag);其中ClientScript.RegisterStartupScript(Type type,string key,string script)这个方法中,scrip 阅读全文
posted @ 2010-12-22 14:59 danball 阅读(2779) 评论(1) 推荐(2) 编辑
摘要: 1.DataGrid.ItemDataBound当项被数据绑定到 DataGrid 控件后,将引发 ItemDataBound 事件。此事件为您提供了在客户端显示数据项之前访问该数据项的最后机会。当引发此事件后,该数据项将被设为空,并且不再可用。(ItemDataBound嘛,只要执行了DataBind方法,就会马上激发这个事件。)2.DataGrid.ItemCreated当创建DataGrid 控件中的项时(不论是在往返行程中还是在将数据绑定到控件时),都会引发 ItemCreated 事件。ItemCreated 事件通常用于控制 DataGrid 控件中行的内容和外观。(ItemCre 阅读全文
posted @ 2010-12-22 14:07 danball 阅读(770) 评论(0) 推荐(0) 编辑