protected void BulletedList1_Click(object sender, BulletedListEventArgs e) { categ(cat_name); } public void categ(string cat_name) { if (con.State == ConnectionState.Closed) { con.Open(); } SqlCommand cmd = new SqlCommand("select pro_img,pro_name,price from product where pro_category='books'", con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); BulletedList1.DataSource = ds; BulletedList1.DataBind(); con.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)