Click here to Skip to main content
16,016,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have bind the radiobuttonlist in datalist, and also i added the text of selected item in the radiobuttonlist are true and false, now i want.. if the database value is null, nothing must be selected in the radiobuttonlist, if database value is true, true in the radiobutton list must be selected, if the value is false, false in the radiobutton list must be selected... How to do this please help me as soon as possible
Posted
Updated 18-Feb-12 3:10am
v3

1 solution

Hope this code Help you

C#
if (table.rows[0].IsNull(0))
{
   RadioButtonList1.ClearSelection();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900