protected void Page_Load(object sender, EventArgs e) { helpinfo = Helps.GetMessage(id); if (helpinfo.Pid == 0) { Response.Redirect("global_edithelpclass.aspx?id=" + id); return; } if (!Page.IsPostBack) { if ((this.username != null) && (this.username != "")) { if (id == 0) { return; } poster.Text = this.username; type.AddTableData(Helps.GetHelpTypes(), "title", "id"); type.SelectedValue = helpinfo.Pid.ToString(); orderby.Text = helpinfo.Orderby.ToString(); title.Text = helpinfo.Title; help.Text = helpinfo.Message; updatehelp.ValidateForm = true; title.AddAttributes("maxlength", "200"); title.AddAttributes("rows", "2"); type.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!Utils.StrIsNullOrEmpty(username)) { poster.Text = this.username; type.AddTableData(Helps.GetHelpTypes(), "title", "id"); Addhelp.ValidateForm = true; title.AddAttributes("maxlength", "200"); title.AddAttributes("rows", "2"); type.DataBind(); } } }