all groups > asp.net building controls > october 2003 >
You're in the

asp.net building controls

group:

Many user controls and only one form...


Many user controls and only one form... nfedin NO[at]SPAM programmer.net
10/28/2003 12:04:34 PM
asp.net building controls:
I am trying to develop a page template class that will enfore the
layout of my site. I want to use a user control for left side
navigation. When I try and add another user control in the body of
the page, only the user control in the body gets executed. Both user
controls have code behind classes. It seems that ASP.Net uses the
last control loaded when it posts back to the server. Am I correct in
this assumption? Any ideas on how to get around this little snag?

Thanks,

Re: Many user controls and only one form... Laurence Lemmon-Warde
10/29/2003 4:17:30 AM
Hi

I am having a similar problem. Dynamically loading 2 User Controls onto
a single "template" Webform but the 2nd control I load loses all its
event handlers. I click a button or datagrid in the 2nd control and it
fires the Load event of the first control???....

If I find a solution I wil post it here.



*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button