Using VB ..
Is there a way to loop through all drop down lists on a web form
checking for a specific value (ddlDropDown.SelectedValue) and then,
based on that value, cause a specific label to go visible or not?
Thanks,
Jimrecursivly loop thru all controls checking the type.
aircode:
LoopThruControls(this);
void LoopThruControls(Control ctl)
{
DropDownList ddl = ctl as DropDownList;
if (ddl !=null)
{
// do somthing with selected value
}
foreach (Control child in ctl.Controls)
{
LoopThruControls(child);
}
}
-- bruce (sqlwork.com)
"Jim in Arizona" <tiltowait@.hotmail.com> wrote in message
news:O4tn$7YDHHA.4464@.TK2MSFTNGP06.phx.gbl...
> Using VB ..
> Is there a way to loop through all drop down lists on a web form checking
> for a specific value (ddlDropDown.SelectedValue) and then, based on that
> value, cause a specific label to go visible or not?
> Thanks,
> Jim
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment