Example #1
0
 protected void Rblmaincategory_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Rblmaincategory.SelectedIndex == 0)//none is selected
     {
         SqlDataSource1.Select(DataSourceSelectArguments.Empty);
         DataListviewproducts.DataSource = SqlDataSource1;
         DataListviewproducts.DataBind();
     }
     else
     {
         SqlDataSourcecategory.Select(DataSourceSelectArguments.Empty);
         DataListviewproducts.DataSource = SqlDataSourcecategory;
         DataListviewproducts.DataBind();
     }
 }
 protected void rbmaincate_SelectedIndexChanged(object sender, EventArgs e)
 {
     SqlDataSourcecategory.Select(DataSourceSelectArguments.Empty);
     SqlDataSourceprimarymaterial.Select(DataSourceSelectArguments.Empty);
     SqlDataSourcebrand.Select(DataSourceSelectArguments.Empty);
 }