Dynamic creation of a user control with a dropdownlist

H

Hugo Flores

I'm dynamically creating a user control based on what the user selected
from a dropdownlist.
The problem I have is that since I want to use the contols' viewstate
inside my user control, I need to create the user control in the Init
of the page that has the dropdownlist. But in the Init event, I don't
have the value of the dropdownlist selected value.
So my question is, how can I make this work?

Thanks
 
D

daniel #

you would can to create the user control on Init and Set the value in
OnLoadComplete method.

regards
daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top