Hi,
I have a datareader that I want to bind two different Radiobuttonlist to that as a datasource. I have used the code below:

cmmd1.CommandText = "select Distinct model from Report where Principal='" + textbox1.Text + "'"; cmmd1.CommandType = CommandType.Text; cmmd1.Connection = cn; cn.Open(); SqlDataReader radar; radar = cmmd1.ExecuteReader(); RadioButtonList1.DataSource = radar; RadioButtonList1.DataTextField = "model"; RadioButtonList1.DataBind();
RadioButtonList2.DataSource = radar; RadioButtonList2.DataTextField = "model"; RadioButtonList2.DataBind(); radar.Close(); cmmd1.Dispose(); cn.Dispose();

But it shows the data just in RadioButtonList1 and it doesn't show any data in RadioButtonList2. Do you have any idea what should I do?

Go to the complete details ...