Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls When to set the value of controls
Message
From
28/07/2009 10:16:05
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Application:
Web
Miscellaneous
Thread ID:
01414924
Message ID:
01415048
Views:
36
>>Hi Paul,
>>
>>Thanks for the heads up on the event stuff. Yes, I am reloading the control based on the data, so at every postback. There is a logical in the data that determines which control to load. I am not sure about the part you mention of reloading the original control and then the new one. If I reload the original control, I would then have to get rid of it before I load the new one; I don't want both.
>>
>>I am not sure why the PreRender didn't work then. All my basic controls; textbox and such were null when the PreRender fired.
>
>Another question: where are you loading your user control? Which event?

I am loading the user control at the end of the Page_Load via a seperate method that also gets called from the grid selected index change. The control is inside an ajax panel so only the panel gets refreshed.

The controls that are null during PreRender are only the controls in the user control itself. Maybe I should try again as I have experienced weird things before.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform