Wrox Programmer Forums
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 3rd, 2010, 01:56 PM
Registered User
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding a content page...

RE: Beginning ASP.NET 4 in C# and VB

On page 202, item 1,the text says, "Select the correct programming language, click the Web Form, name the page Default.aspx, and then, at the bottom of the dialog box, select the check boxes for Place Code in Separate File and Select Master Page, as shown in Figure 6-3."

Two questions:

1. My version (Professional 2010) of Visual Studio doesn't display check boxes for "Place Code in Separate File" and "Select Master Page". Is that a version difference or do I have something setup incorrectly.

2. Should the selection be "Web Form using Master Page" instead of just choosing a Web Form? I couldn't find a way to associate the master page and the Default.aspx using just the Web Form.

Thank you,
Old July 3rd, 2010, 02:47 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi David,

Looks like you missed the instructions and the big "Common Mistakes" warning on page 37 and 38. You created a Web Application Project using File | New Project instead of a Web Site Project using File | New Web site.

The two types are not compatible, and the book is based on a Web Site Project, so you better start over at page 37, or grab the source from the previous chapter that can be downloaded from this web site, and use that as a starting point.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding content control to table's row rezarezash Word VBA 0 August 23rd, 2008 12:36 AM
Master Page Method: Code-Behind for Content Page kwilliams ASP.NET 2.0 Professional 3 June 2nd, 2008 12:57 PM
Adding XSLT transformed XML content dynamically jacob ASP.NET 1.x and 2.0 Application Design 2 December 1st, 2005 04:40 PM
Losing Datagrid Content when Adding TableStyle SupaHoopsa General .NET 2 September 24th, 2004 02:50 AM
adding content to an already loaded page adeptz Javascript 5 March 19th, 2004 06:53 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.