I want to filter records as per price
I want to retrive data from database what i have to use to retrive data a between , and or an or....
I have following code.... But it dosnt work
protected void rb1_CheckedChanged(object sender, EventArgs e)
{
if (rb1.Checked == true)
{
DataView dv = dt.DefaultView;
dv.RowFilter = "Price>='$ 500' Or Price <='$ 1100'";
DataList1.DataSource = dv;
DataList1.DataBind();
}
}
I want to retrive data from database