Collins, Michael G [mailto:[EMAIL PROTECTED]] wrote:

> Using ASP I had a top.asp and bottom.asp page that I included
> in all of my other pages to have a common menu system for my web site.
>
> Is there a preferred way to do this with ASP.NET? I've heard
> that you don't really want to use Server Side includes to
> render HTML is that true or is that the best way to do it?

You can turn each include into a custom System.Web.UI.UserControl[1] whose
content you create/maintain via an ASCX[2].

> Are there web sites that give good examples of how to do this
> type of thing?

Sure, here's[3] a whole section in the SDK dedicated to the subject which is
sprinkled with all sorts of examples.

HTH,
Drew
.NET MVP

[1]
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWebUIUserControlClassTopic
.htm
[2] ms-help://MS.VSCC/MS.MSDNVS/cpgenref/html/cpconcontroldirective.htm
[3] ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconwebformsusercontrols.htm

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to