Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web User Control setting value of a control
Message
From
31/08/2009 15:03:39
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Web User Control setting value of a control
Environment versions
Environment:
ASP.NET
Application:
Web
Miscellaneous
Thread ID:
01421966
Message ID:
01421966
Views:
110
OK, I have been down this road before and still not making sense.

I have two Web User controls that contain some controls; labels, textboxes, grids.

In both controls I have a Setup method that I call after I create the control and before adding it to the page. In the Setup method I am trying to pre-set the value of some of the controls. With the grid I am retrieving data and trying to set the DataSource of the grid. But the grid and all other controls are null in my setup method so I moved them to the Page_Load event. In one of the user controls my contained controls are not null here but in the other user control they are still null in the page load event. This is grief because I can't find a spot where I can setup my controls in they user control the way I want. What other options do I have?
Thanks
Tim
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform