Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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 August 3rd, 2010, 11:10 AM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
Default Chapter 14-Photo Album Pages Monochrome vs Dark Grey

When I try step 18 on page 511 to change from Monochrome theme to Dark Grey theme, the page stays in Monochrome.

A perusal of other pages created earlier (Home, Login, Contact Us) all work fine. The Album pages are wired to the FrontEnd master page. So I'm at a loss of where to look next.

This book is undoubtedly the best written text in this genre I've ever read. I'm slowing down a bit after hitting Chapters 13 and 14 as they are the most difficult to this point. It is just harder to visualize the connections between the database and the data controls using LINQ.

By the way, how do you pronounce LINQ?
 
Old August 3rd, 2010, 11:33 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,

Quote:
When I try step 18 on page 511 to change from Monochrome theme to Dark Grey theme, the page stays in Monochrome.
Maybe the page doesn't inherit BasePage? That can happen when you create a brand new page based on the standard Web Form, not on your custom module. If it does inherit BasePage, can you post some code here so I can take a look at it?

Quote:
This book is undoubtedly the best written text in this genre I've ever read.
Thank you very much for that. Spread the word, Spread the word... ;-)

Quote:
It is just harder to visualize the connections between the database and the data controls using LINQ.
Yes, I can imagine that. A lot goes on under the hood that may be difficult to grasp. Hopefully, the "pure code" example shows you don't need to use data controls all the time....

Quote:
By the way, how do you pronounce LINQ?
Not sure if I, as a non-native English speaker, am the best person to ask, but AFAIK, it's pronounced as link.

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 August 3rd, 2010, 11:45 AM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
Default

Bingo! My pages were NOT based on my BasePage. Is there a way to fix that or do I need to recreate the album pages?

Many thanks!
 
Old August 3rd, 2010, 12:08 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Just change "Inherits System.Web..UI.Page" to "Inherits BasePage" (VB) or ": System.Web..UI.Page" to ": BasePage" (C#).

See page 212, step 6 for detailed instructions.

Cheers,

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!
The Following User Says Thank You to Imar For This Useful Post:





Similar Threads
Thread Thread Starter Forum Replies Last Post
page 221 - problems with Monochrome and dark grey css sarala BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 April 16th, 2010 02:35 AM
Chapter 7, Online Photo Album, Ajax, cannot upload to subdirectories - here is the so kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 March 31st, 2010 09:19 PM
Error posting photo to photo album abel714 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 February 5th, 2007 03:07 AM
Wrox Photo Album Help rsearing BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 September 27th, 2006 02:30 PM





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