954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Adding Master pages to an existing website

Hi all,

I am new to asp.net programming and i dont know how to add a master page to an existing website. I have created 3 webpages and i have to make these pages as child pages in the master page that i have added.

Any suggestions or help please thank u,

THanks in advance,
Karthik.

kodingkarthik
Light Poster
37 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

It would have been easier if u have done it the other way, first create your master page and then your content pages(child pages).

You can add your masterpage by setting the MasterPageFile attribute in your @Page directive

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"

and then put an asp:Content tag around your page content.

Aneesh_Argent
Junior Poster
104 posts since Dec 2008
Reputation Points: 16
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You