protected void Page_Load(object sender, EventArgs e) { if (!currentAdmin.IsSuper) { adminOpers.ShowNoPower(); return; } theState = MyPageState.add; if (Request.QueryString["id"] != null) { theState = MyPageState.edit; this.btnAdd.Text = "保存"; if (!Page.IsPostBack) { initEdit(); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["spcId"] != null) { spcId = Request.QueryString["spcId"].ToString(); this.btnBackToList.Attributes.Add("onclick", "javascript:window.location.href='articleList.aspx?spcId=" + spcId + "'"); } if (!currentAdmin.validationSpcEditor(spcId)) { adminOpers.ShowNoPower(); return; } theState = MyPageState.add; if (Request.QueryString["id"] != null) { theState = MyPageState.edit; } InitPage(); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["spcId"] != null) { spcId = Request.QueryString["spcId"]; } this.btnBackToList.Attributes.Add("onclick", "javascript:window.location.href='signalPageList.aspx?spcId=" + spcId + "'"); if (!currentAdmin.validationSpcAdmin(spcId)) { adminOpers.ShowNoPower(); return; } if (Request.QueryString["id"] != null) { signalPageId = Request.QueryString["id"]; theState = MyPageState.edit; this.hlkEditTemplate.Text = "编辑模板"; this.hlkEditTemplate.NavigateUrl = "?id=" + signalPageId + "&spcId=" + spcId + "&editT=1"; this.hlkEditContent.Text = "编辑内容"; this.hlkEditContent.NavigateUrl = "?id=" + signalPageId + "&spcId=" + spcId; if (Request.QueryString["editT"] != null && Request.QueryString["editT"].ToString() == "1") { this.pnlTemplate.Visible = true; this.pnlContent.Visible = false; } else { this.pnlTemplate.Visible = false; this.pnlContent.Visible = true; } } InitPage(); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["spcId"] != null) { spcId = Request.QueryString["spcId"].ToString(); } if (!currentAdmin.validationSpcEditor(spcId)) { adminOpers.ShowNoPower(); return; } theState = MyPageState.add; if (Request.QueryString["typeid"] != null) { theState = MyPageState.edit; this.btnAdd.Text = "保存"; } if (!Page.IsPostBack) { initEdit(); } }