protected void gridField_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "del") { bool success = news.NewsDelete(e.CommandArgument.ToString()); if (success) { GridBind(); Pagination2.Refresh(); } } if (e.CommandName == "update") { Response.Redirect("NewsEdit.aspx?id=" + e.CommandArgument.ToString() + "&&ceid=" + gridField.PageIndex); } if (e.CommandName == "btnUser") { string jumpUrl = @"window.open('AddNewsMember.aspx?id=" + e.CommandArgument + "', 'top', 'width=1000,height=700,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=0')"; ClientScript.RegisterStartupScript(GetType(), "", "<script>" + jumpUrl + "</script>"); } }