Home All Groups Group Topic Archive Search About

Accessing multiple instances of a control on a form

Author
27 May 2005 1:59 AM
Vivek Sharma
Hi,

I have a form with multiple instances of a dropdownlist user control.  How
can I access the selected value of each in my aspx.cs?

Thanks
Vivek

Author
27 May 2005 6:48 AM
Steve C. Orr [MVP, MCSD]
You can loop through all the controls of a specific type on your form with a
recursive function such as this:
http://SteveOrr.net/faq/ControlTreeRecursion.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"Vivek Sharma" <viv***@xtra.co.nz> wrote in message
news:%23nhF$9lYFHA.1092@tk2msftngp13.phx.gbl...
> Hi,
>
> I have a form with multiple instances of a dropdownlist user control.  How
> can I access the selected value of each in my aspx.cs?
>
> Thanks
> Vivek
>