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:
This is what I am seeing:
I doubt the book is wrong, so what am I missing?
Thanks
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.
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.
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."
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.
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.
Right click on your master page and select "add content page".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With