
February 6th, 2003, 10:39 PM
|
|
Registered User
|
|
Join Date: Feb 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
User Controls and passing values
I have spent many many hours researching and looking through a dozen books but I can not seem to find an example nor get this to work.<br><br>I simply have a User Control that builds a drop down of facilities. (Postback set to true)<br><br>I dropped this user control onto my web form of course. <br><br>When a user selects from the drop down I can NOT retrieve the selected value <br>in my Web page. Because the Page_Load event fires first before the User Control<br>does. Because of this. I get the PREVIOUS selected value instead of the one just<br>selected.<br><br><br>Put another way....<br>The SelectedIndexChanged Sub (in user control) always runs AFTER the page load of the Form, so I always get the last value and NOT the one just selected.<br><br><br>Can anybody give me a link of a working user control example that handles postbacks<br>and retreiving the immediate value? Has anybody ever run into this problem before?<br><br>Thank you.<br><br>David Bernett
|