protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { hidId.Value = Request.QueryString["id"]; if (!UtFunction.IsNum(hidId.Value)) { Response.Redirect("../Error.aspx"); } InitContent(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!b.IsNewsQX(BaseUserName, "3")) { Response.Redirect("../NoQx.aspx"); } txtPUBLISHTIME.Attributes.Add("onfocus", "WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"); InitDDL(); InitDDL1(); hidId.Value = Request.QueryString["id"]; if (!UtFunction.IsNum(hidId.Value)) { Response.Redirect("../Error.aspx"); } InitContent(); } }