Hi guys,
i am new to asp.net and i may raise many questions in the coming months
hope you guys can give me a hand
And here is my question at this moment.
i have built a content page in advance, without declared as select the master page.
now i want to change my mind and want the content page select the master page.
Is there any ways to solve this problem without make a new page?

best regards,

Recommended Answers

All 2 Replies

Hi guys,
i am new to asp.net and i may raise many questions in the coming months
hope you guys can give me a hand
And here is my question at this moment.
i have built a content page in advance, without declared as select the master page.
now i want to change my mind and want the content page select the master page.
Is there any ways to solve this problem without make a new page?

best regards,

I was not able to understand ur Question. but i think u want to refer a Master Page to a Page which is already Added.
For that, you have to remove html, title, head, body, form tags from ur page. add ContentPlaceHolder in the page and put ur content in it. And also u have to add <MasterPageFile="Your Master page path"> in the page directive.

At the top of your file, the page directive, you need to add: masterPageFile="~/root/path to file/MasterPage.master"

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.