예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     id    = Request.QueryString["id"].GetInt();
     types = Request.QueryString["types"].GetString();
     if (!IsPostBack)
     {
         ddl_fenlei.SetDataSource(LibFenlei.GetFenlei_dt("types='" + types + "'"));
         LoadData();
     }
 }
예제 #2
0
        private void BindGridView()
        {
            dt = LibFenlei.GetFenlei_dt("types='" + types + "'");
            gvqy.DataSource = LibFenlei.GetFenlei("types='" + types + "'");
            gvqy.DataBind();

            this.ddl_cate.SetDataSource(dt);
            this.ddl_cate.Items.Insert(0, "-请选择-");
            LibCache.remove(LibCache.tc_fenlei);
        }