3

When creating a new item - "Web Form using Master Page" I get a dialog for choosing the master page.

Can I get that dialog for an existing page so I can change its master page?

ispiro
  • 26,556
  • 38
  • 136
  • 291

3 Answers3

4

No, but you can set the master page by going to the markup and adding MasterPageFile="~/Site.master" to the <%@ Page directive

Change Site.master to whatever your master page's name is

Or

If you're in the Page's Markup, when clicking on the <%@ Page directive and viewing the Properties window - you will see a MasterPageFile property (Note: this is not shown when clicking on the page name in the Solution Explorer)

Blachshma
  • 17,097
  • 4
  • 58
  • 72
1

you can also change this in the .aspx page, change the MasterPageFile="" setting to whichever masterpage you want the page to use.

Jeggs
  • 250
  • 1
  • 3
0

I think you need to change the master page in the @Page directive.

Tim
  • 4,051
  • 10
  • 36
  • 60