Page.LoadControl, Page_Load, and SelectedValue

  • Thread starter Leszek Taratuta
  • Start date
L

Leszek Taratuta

Hello,

I load a user control using Page.LoadControl(). The user control contains
two web controls: a drop-down list and a text box.
The problem is that the SelectedItem as well as Text properties are not
available in Page_Load of the user control when the page is posted back. The
properties are simply empty strings.
They become availlable in PostBack events such as Button_Click or
Page_PreRender, but I need these values during Page_Load.

Any idea how to accomplish this?
Thanks,

Leszek Taratuta
 

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

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top