Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Control Inside of a User Control

Status
Not open for further replies.

ghesse

Programmer
Jun 16, 2003
51
US
Hello,

I have a user control that's used for selecting a date range. I've placed another user control inside of that user control to generate a report from the date range selected.

When the user actually finishes the form and wants to generate the report, the properties of the second user control are assigned programically like:

MyControl.startDate = txtStartdate.Text;

inside of the event handler for the button they press.

The problem is the second user control doesn't seem to be reloading at this point and just sits there without any properties assigned to it. How do I get this second user control to refresh?

Thanks,
ghesse
 
Are you doing anything postback-wise? If so, you'll need to tell your code to reload the user control (and its own contained control) after PostBack.
 
Hmmm...it depends. You would normally test the IsPostBack property of the Page object within your Page_Load event, but post your code and I'll take a look at it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top