Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls When to set the value of controls
Message
 
To
27/07/2009 19:19:20
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:
01415295
Views:
35
Tim,

I've been investigating something along the same lines. I have no definite answers yet but I have a couple of links that may help you.

http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx

and (a four parter)

http://weblogs.asp.net/infinitiesloop/archive/2006/08/25/TRULY-Understanding-Dynamic-Controls-_2800_Part-1_2900_.aspx

HTH
Richard

>Hi All,
>
>I have created a couple of user controls that I want to dynamically add to a page. The first issue is I was under the impression I had to set the value I wanted in my controls within the Page_PreRender as opposed to the Page_Load event. When the Page PreRender fires, my controls are still null. What is the common wisdom of when to set my controls values?
>
>The second question is can I place a User Control in a PlaceHolder? It doesn't throw any exceptions, but doesn't display. I need to place one of two controls in a specific location on my page and don't know which control until the data is retrieved but before the page is loaded. What is the best way to do this?
>Thanks
>Tim
State of Florida, DCF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform