Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 September 26th, 2006, 02:21 PM
Authorized User
 
Join Date: Sep 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 problem

Ok, I know this book is not supposed to hold your hand to cross the street. But I was doing the chapter 2 dry run, in a section it asks to remove the "MasterPageFile" directive from the Default.aspx page. But by doing that it will not run the site, I have to leave the MasterPageFile on the page, and forget using the 'web.config' setting since it doesn't work.

This is an observation , not asking for baby steps. That the portion is not correct.

 
Old September 26th, 2006, 04:51 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem, at Chapter 2 as well.

The build does succeed in my app if you remove the master page directive but in the aspx page code behind file VS2005 complains with a number of red underlines - Validation(xhtml 1.0 transitional):this name contains uppercase letters, which is not allowed. Leaving in the master page directive removes the complaints.
 
Old September 28th, 2006, 07:16 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi There,

Same thing for me, removing the "MasterPageFile" just didn't work, so this is what it looks like now (Chapter-2 in progress..),

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="Template.master"
CodeFile="Default.aspx.cs" Inherits="_Default" Title="The Beer House" %>


But I cannot view/run in browser, keep on getting the following error:

:\Projects\Web\TheBeerHouse\App_Code\BasePage.cs Line: 5

Code on Line 5:

Line 5: protected override void OnPreInit(EventArgs e)

It doesn't like the EventArgs e for some reason.

I'm using VWD'05 and I've hand written, double and sometimes triple checked all line-codes, any ideas?

Cheers

Trying to make way...
ASPX, DB, XLS
 
Old October 26th, 2006, 07:55 AM
Authorized User
 
Join Date: Oct 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this...
MasterPageFile="~/Template.master"

 
Old November 6th, 2006, 07:08 PM
Registered User
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem and I found the answer at:

http://groups.google.si/group/micros...84107e0d9fa042

It seems this is not a problem with code or something like this, but it is a limitation of VS2005






Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a problem in chapter 2 Okie BOOK: Beginning Access 2003 VBA 1 August 9th, 2007 10:30 AM
Chapter 5 Problem gogeo BOOK: Beginning Access 2003 VBA 1 October 10th, 2005 10:34 AM
Problem in chapter 7 gpauta JSP Basics 1 June 1st, 2004 04:31 AM
problem in chapter 4 gpauta JSP Basics 3 May 11th, 2004 06:31 AM





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