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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.