private void DataGrid1_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { Utility.CheckSecurity(2); int mrId; try { mrId = int.Parse(e.Item.Cells[0].Text.Trim()); Response.Redirect(sFormAction + "ID=" + mrId + "&"); } catch (Exception er) { ShowErrMsg(er.Message); } }
private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 Utility = new CCUtility(this); Utility.CheckSecurity(2); if (!IsPostBack) { p_theID.Value = Utility.GetParam("ID"); Page_Show(sender, e); } }
//protected String[] members_security_level_id_lov = "0;New;1;Member;3;Admin".Split(new Char[] {';'}); private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 Utility = new CCUtility(this); // PageSecurity begin Utility.CheckSecurity(2); // PageSecurity end if (!(this.IsPostBack)) { try { ViewState["Sort"] = ""; ViewState["Page"] = "0"; Page_Show(sender, e); } catch (Exception er) { ShowErrMsg(er.Message); } ErrorMsg.Visible = false; } }