protected void gridField_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "del") { bool success = info.InfoDelete(e.CommandArgument.ToString()); if (success) { GridBind(); Pagination2.Refresh(); } } if (e.CommandName == "update") { int aa = gridField.PageIndex; Response.Redirect("InfoEdit.aspx?id=" + e.CommandArgument.ToString() + "&&ceid=" + gridField.PageIndex); } }