|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know how to select a ListItem based on a value returned from a query?
For example, I have yes and no radiobuttons. If a query returns true, I want the yes button to be selected. If it returns false, the no button is selected. Any thoughts? If I could tackle these checkbox radiobutton issues I'd feel much better about aspx! Best wishes! |
|
#2
|
|||
|
|||
|
Code:
if (query returns true)
{
radioButtonYes.Checked = true;
radioButtonNo.Checked = false;
} else {
radioButtonYes.Checked = false;
radioButtonNo.Checked = true;
}
Is that what you mean? Last edited by nerdrocker : March 4th, 2004 at 05:38 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Selecting a radio button (C#) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|