Last post Jun 22, 2009 12:20 PM by vinz
Jun 22, 2009 10:58 AM|Dave_Winchester|LINK
I have jsut been asked a question by a fellow collegue but not sure of the answer.
We have a form which uses an ObjectDataSource to get, update and insert data - Standard stuff really. But, in the insertitemtemplate he wants to display a radiobutton list i.e. Yes / No options instead of having a Checkbox bound to the field. Is this possible.
If so, can someone post an example. Thanks
Jun 22, 2009 12:09 PM|PURAV THAKKAR|LINK
Can you please provide some more information of you problem with some code if possible so i can guide you accordingly,
Jun 22, 2009 12:14 PM|jat40|LINK
Is this what you are asking.
Musertype is the id of the radiobutton
bool usertype1 = MUsertype.Checked;
// Response.Write("usertype1 = " + usertype1 + "<br>");
if (usertype1 == true)
MUsertype.Text = "yes";
else if (usertype1 == false)
MUsertype.Text = "No";
//Response.Write("usertype1 = " + MUsertype.Text + "<br>");
On the design side of code.
change the property type of radiobutton from checked to string
Jun 22, 2009 12:20 PM|vinz|LINK
You might get some useful tips here: