在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
复制代码 代码如下: #region //'Revision: 1.00 Created Date: 2013/08/02 Created ID: Una [#1300071]增加多選框 /// <summary> /// Session獲取多選框值 /// </summary> private void RememberOldValues() { ArrayList categoryIDList = new ArrayList(); string index = ""; foreach (GridViewRow row in gridView.Rows) { index = (string)gridView.DataKeys[row.RowIndex].Value; bool result = ((CheckBox)row.FindControl("DeleteThis")).Checked; // Check in the Session /// <summary> 复制代码 代码如下: protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { RememberOldValues(); gridView.PageIndex = e.NewPageIndex; BindData(); RePopulateValues(); } 复制代码 代码如下: protected void btnSelect_Click(object sender, EventArgs e) { string items = ""; ArrayList categoryIDList = new ArrayList(); string index =""; foreach (GridViewRow row in gridView.Rows) { index = (string)gridView.DataKeys[row.RowIndex].Value; bool result = ((CheckBox)row.FindControl("DeleteThis")).Checked; // Check in the Session |
请发表评论