How do I handle header and footer files in the MasterPage in ASP.NET 2.0?

In my Masterpage I have a header placeholder like this: <asp:contentplaceholder id="HeaderPlaceHolder1" runat="server" />. I wanted to know how I can include a another aspx file in this section, like ASP's <!--#INCLUDE FILE="header.asp"-->. How do I do this with ASP.NET so my header is in a separate file instead of coded all over the place?
bemara57Asked:
Who is Participating?
 
aki4uCommented:
This is very simple with .NET 2.0. You build your header and footer as ascx (controls) and on the master page you design where thery are gona be placed and just drag and drop them one by one . Since you have it in your master page any other pages you create  they will have same header and footer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.