예제 #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();
            SqlDataReader sdr     = bllhelp.readinfo(help);
            if (sdr.Read())
            {
                Label1.Text      = sdr["_help_id"].ToString();
                TextBox1.Text    = sdr["_user_question"].ToString();
                FCKeditor1.Value = sdr["_answer"].ToString();
            }
            sdr.Close();
        }
    }
예제 #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["_help_id"]);
        Help help = new Help();

        help.ID = _id;

        BLLhelp       bllhelp = new BLLhelp();
        SqlDataReader sdr     = bllhelp.readinfo(help);

        if (sdr.Read())
        {
            Label1.Text = sdr["_user_question"].ToString();
            Label2.Text = sdr["_answer"].ToString();
            Page.Title  = Label1.Text;
        }
    }