Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     categoryid = Convert.ToInt32(Request.QueryString["CategoryID"]);
     //categoryid = 1;
     if (!IsPostBack)
     {
         DataTable dt = new DataTable();
         dt = bus.ShowProductCategory(categoryid);
         DataList1.DataSource = dt;
         DataList1.DataBind();
         DataTable dt1 = new DataTable();
         dt1 = bus.ShowCategoryy(categoryid);
         DataList2.DataSource = dt1;
         DataList2.DataBind();
     }
 }