Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #92: Did you know … How to select a master page using 'Select a Master Page' dialog?

Master page for a Web form can always be set manually in the source code, but here is an option to select the master page while create the webform using the 'Select a Master Page' dialog.

The path to select a Master page using the 'Select a master page' dialog is different for a Web application project than for a Web site.

 
For a Web Application project:

  1. Right click solution explore. Select Add and then select New Item

    image

  2. From the Add new Item dialog select Web content form and click on Add button.

    image
  3. Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page & click on OK button. The aspx added would now be using the selected master page.

    image

 
For a Web site project:

  1. While adding a Webform, check the select master page checkbox and click on the Add button.

    image
  2. Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page & click on OK button. The aspx added would now be using the selected master page.

    image

Hope this helps,

Deepak Verma
SDET | Visual Web Developer

Comments

kb said:

or you could just right-click on the master page & select 'Add Content Page'

# August 24, 2009 9:55 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker