Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't find `Web Form Using Master Page` in Visual Studio 2010 Professional

I am reading Microsoft® ASP.NET 4 Step by Step and I am on page 148.

The tutorial says to add a new Web Form Using Master Page item, but I can't find it!

The screenshot in the book is below:

Book Screenshot

This is what I am seeing:

My Screenshot

I doubt the book is wrong, so what am I missing?

Thanks

like image 499
JMK Avatar asked May 20 '12 17:05

JMK


People also ask

How do I open a Web form in Visual Studio 2010?

You must choose File => New => Project... instead and not File => New => Web Site... . Then select the Visual C# / Web Templates group on the left, and then choose the “ASP.NET Web Application” template in the center column. Name your project and press the OK button.

How do I add a master page to webform?

Add the master page into our project. Right click Project->Add->New item (shown in the picture), After clicking on new item, Window will open, select Web Form->Web Forms Master Page (shown in the picture), After clicking the add button, master page 'site1.

How do I open a Web form in Visual Studio?

Select ASP.NET Web Application (. NET Framework). A few clicks later you can select Web Forms. If you don't see the ASP.NET Web Application option then try installing the ASP.NET and web development workflow using the Visual Studio installer."

How do I create a master page in Visual Studio 2010?

To create the master pageIn Solution Explorer, right-click the name of your Web site, and then click Add New Item. Under Visual Studio installed templates, click Master Page. In the Name box, type Master1. Select the Place code in separate file check box.


2 Answers

A bit late in answering, but the screenshot posted by JMK from the book is likely showing the UI from Visual Web Developer. In Visual Studio, you would pick "Web Form". Then, on the bottom-right next to the Name field, there are two checkboxes (seen on JMK's second screenshot). Check off "Select master page". Click Add (or press Enter) and you will get to pick the master page you want to use.

like image 59
NeutronFlux Avatar answered Sep 28 '22 00:09

NeutronFlux


Right click on your master page and select "add content page".

enter image description here

like image 20
saber tabatabaee yazdi Avatar answered Sep 28 '22 00:09

saber tabatabaee yazdi