gproulx
Posts: 68
|
| Posted: 08/16/2007, 11:44 AM |
|
Hi,
I have a popup window which have a grid with data from db. I added a radiobutton control with 2 values (from a list of values, not db). I also add a button.
What i wanted to do with the button is ; if the first value of the radiobutton is selected->open a new blank page, if it's the second value that are selected, i wanted the popup window to be closed. I tried several things but my button doesn't seem to perform any validation/operation.
Help please!!
Thanks in advance
|
 |
 |
klwillis
Posts: 428
|
| Posted: 09/03/2007, 11:06 AM |
|
The radio button stores a group of values as an array.
So, if the name of your radio button is 'WindowAction', then
you can use the following conditional logic:
//if first radio button selected.
if (WindowAction[0].checked)
{
//open a new blank page.
}
//else
else
{
//close popup window.
}
//endif first radio button selected.
Quote gproulx:
Hi,
I have a popup window which have a grid with data from db. I added a radiobutton control with 2 values (from a list of values, not db). I also add a button.
What i wanted to do with the button is ; if the first value of the radiobutton is selected->open a new blank page, if it's the second value that are selected, i wanted the popup window to be closed. I tried several things but my button doesn't seem to perform any validation/operation.
Help please!!
Thanks in advance
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
 |
 |
|