Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Help help = new Help();
            help.ID = Convert.ToInt32(Request.QueryString["id"]);

            BLLhelp bllhelp = new BLLhelp();
            MySqlDataReader sdr = bllhelp.readinfo(help);
            if (sdr.Read())
            {
                Label1.Text = sdr["_id"].ToString();
                TextBox1.Text = sdr["_title"].ToString();
                FCKeditor1.Value = sdr["_content"].ToString();
            }
            sdr.Close();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = Convert.ToInt32(Request.QueryString["id"]);
        BLLHelpcate bllhelpcate = new BLLHelpcate();
        DataSet ds = bllhelpcate.select();
        Repeater1.DataSource = ds;
        Repeater1.DataBind();

        int _id = Convert.ToInt32(Request.QueryString["_id"]);
        Help help = new Help();
        help.ID = _id;

        BLLhelp bllhelp = new BLLhelp();
        MySqlDataReader sdr = bllhelp.readinfo(help);
        if (sdr.Read())
        {
            Label1.Text = sdr["_title"].ToString();
            Label2.Text = sdr["_content"].ToString();
            Page.Title = Label1.Text;
        }
    }