Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        BLLHelpcate bllhelpcate = new BLLHelpcate();
        DataSet     ds          = bllhelpcate.select();

        Repeater1.DataSource = ds;
        Repeater1.DataBind();
    }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BLLHelpcate bllhelpcate = new BLLHelpcate();
         DataSet     ds          = bllhelpcate.select();
         dl_cate.DataSource = ds;
         dl_cate.DataBind();
     }
 }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //BLLhelp bllhelp = new BLLhelp();
            //DataSet ds1 = bllhelp.selectAll();
            //Repeater2.DataSource = ds1;
            //Repeater2.DataBind();

            BLLHelpcate bllhelpcate = new BLLHelpcate();
            DataSet     ds          = bllhelpcate.select();
            Repeater1.DataSource = ds;
            Repeater1.DataBind();
        }
    }
Example #4
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();

        DataSet ds2 = bllhelpcate.select(id);

        Repeater3.DataSource = ds2;
        Repeater3.DataBind();


        BLLhelp bllhelp = new BLLhelp();
        DataSet ds1     = bllhelp.selectAll(id);

        Repeater2.DataSource = ds1;
        Repeater2.DataBind();


        Model.Helpcate helpcate = new Model.Helpcate();
        helpcate.ID = id;

        SqlDataReader sdr = bllhelpcate.sqldatareader(helpcate);

        if (sdr.Read())
        {
            Page.Title = sdr["_catename"].ToString();
        }
        else
        {
            sdr.Close();
            if (Label1.Text == "个人注册及信息管理")
            {
                Response.Write(Label1.Text);
                Page.Title = "个人注册及信息管理";
            }
        }
    }
Example #5
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;
        }
    }