Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BLLHelpcate bllhelpcate = new BLLHelpcate();
     DataSet ds = bllhelpcate.select();
     Repeater1.DataSource = ds;
     Repeater1.DataBind();
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();

        }
    }
Ejemplo n.º 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();

        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;
        }
    }
Ejemplo n.º 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();

        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;

        MySqlDataReader sdr = bllhelpcate.sqldatareader(helpcate);
        if (sdr.Read())
        {
            Page.Title = sdr["_catename"].ToString();

        }
        else
        {
            sdr.Close();
            if (Label1.Text == "个人注册及信息管理")
            {
                Response.Write(Label1.Text);
                Page.Title = "个人注册及信息管理";

            }
        }
    }