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 September 8th, 2010, 08:39 PM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
Default Try It Out Page 535

When I display the Genres.aspx in my browser, the background is all grey and the Gridview does not display properly.

When I "View Source" I notice there is a link (href) to the DarkGrey.css file. Where would that have come from? It is not in my Management.master file or anywhere else I look.

I have added a link to the Management.css file in the Management.master but not the DarkGrey.css. It seems the DarkGrey.css is overriding the Management.css. (The steps for this try it out don't include adding a reference to the Management.css, but shouldn't there be one?)

How do I get the DarkGrey.css file NOT to be compliled?
 
Old September 9th, 2010, 02:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi jlransford,

I can think of two reasons for this:

1. Your management page is based on your custom template and thus inherits BasePage which sets the theme dynamically (see page 437, step 4 for the steps to create a page that is not based on your custom template)

2. You haven't (correctly) created the web.config file in the Management folder that resets the theme. See page 438, step 9 for more instructions.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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!
 
Old September 9th, 2010, 09:17 AM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
Default

My problem was #1. My management pages were based on my BasePage. Changing Inherits to System.Web.UI.Page solved the problem.

Many thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
WebPage Error When Run Genres.aspx (p 535 Try It Out) jlransford BOOK: Beginning ASP.NET 4 : in C# and VB 5 August 10th, 2010 02:59 AM
Page 210:Page object calling a private method from BasePage? aperture8 BOOK: Beginning ASP.NET 4 : in C# and VB 6 August 9th, 2010 07:04 AM
can’t open the page because the server where this page is located isn’t responding m_alsobaai Forum and Wrox.com Feedback 3 July 15th, 2010 06:13 AM
Chap 15 pg 535: SMTP error (requires secure connection, authentication and ssl) tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 8 July 19th, 2009 04:10 AM
Option Strict on / Late Binding (p.535) irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 October 18th, 2006 12:51 PM





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