日期:2014-05-16  浏览次数:20592 次

打开页面就弹出按钮事件的对话框
本帖最后由 u011619987 于 2014-04-09 13:49:25 编辑
        private MySqlConnection con = null;
        private int page = 1;
        private int totalPage;
        private int count = 3;
        protected void Page_Load(object sender, EventArgs e)
        {
            
            this.getTotalPage();
            if(!Page.IsPostBack)
            {
                last_Click(null, null);
            }
            if (!IsPostBack)
            {
              
                DrLB();
                DrHD();
                DrPP();
                DrHS();
                DrNMC();
            }
        }
        public void DrLB()  //类别
        {
            DB db = new DB();
            string sqlstr = "SELECT CategoryID,Category FROM Category ";
            DataTable dt = db.reDt(sqlstr);

            LB.DataSource = dt;
            LB.DataBind();
        }
        public void DrPP()  //品牌
        {
            DB db = new DB();
            string sqlstr = "SELECT VarietiesID,Varieties,VCID FROM Varieties ";
            DataTable dt = db.reDt(sqlstr);

            PP.DataSource = dt;
            PP.DataBind();
        }
        public void&n