| Les Matheson 2004-03-28, 10:28 pm |
| Priya,
Assuming you've named your buttons "btnYes" and "btnNo", one way to
do it is like this:
if (myDatabaseField==true)
btnYes.Checked = true;
else
btnNo.Checked = true;
For this to work (or anything else with radio buttons), both the yes
and no buttons must be members of the same group -- you can set the
Group property in the property window to be any arbitrary string, as
long as its the same for both.
Good luck,
Les Matheson
Integral Concepts, Inc.
http://www.ivsds.com
priyasree@hotmail.com (Priya) wrote in message news:<8f1c1a85.0402231246.46fadcf0@posting.google.com>...
> Hi Guys,
> I know this is a dump question and a simple problem. But I am new to
> ASP.NET so finding it difficult to get it work.
> Ok here is the problem
> I am getting a value from a SQL server View. I have a Radio button
> list with values Yes or No . I need to assign the value and make it
> selected based on the value of the result from view. How do I do it in
> ASP.NET?
> Thanks
> Priya
|