Question: Do you try to use or avoid nested web user controls?

LoveMercy

Member
Joined
Dec 12, 2007
Messages
8
Programming Experience
1-3
I'm working on a project in .NET Framework 2.0. I'm using a master page with three contentplaceholder web controls. I'm also using a web form with three content web controls and this web form is attached to the master page. In one of the content-controls I'm using a web user control that includes the left bar. In this control I'm using two things; another web user control that includes the menu and a search box. In other words, I'm using nested web user controls. The advantage of this is that I'm able to drag-and-drop the whole left bar to another web form. But then I've got this question. In one of the web form's other content controls I'm using a layout including web user controls, but I don't see a reason for using this content later on in the project. Should I store this material in the web form or should I store it in a web user control creating a nested web user control?
 
Last edited:
To be honest...I dont think that it matters, it is your preference based on your specific needs. I have done similar things and had it work in a large web application throughout with a master page. Possibly consider using it on a master page if you will use the same layout throughout. Having a single web control that you can add to the master page and this can be your "layout control" That is what I did most recently with the one I am having trouble deploying here

http://www.vbdotnetforums.com/showthread.php?p=80190#post80190
 
Back
Top