protected void BulletedList3_Click(object sender, BulletedListEventArgs e) { string price = BulletedList3.Items[e.Index].Value; if (con.State == ConnectionState.Closed) { con.Open(); } SqlCommand cmd = new SqlCommand("select pro_img,pro_name,price from product where price='" + price + "' and status='A' and type='retail'", con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); DataList1.DataSource = ds; DataList1.DataBind(); con.Close(); }
price
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)