Wrox Programmer Forums
|
BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages by Jacob J. Sanford; ISBN: 9780470124482
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 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 10th, 2008, 02:08 PM
Registered User
 
Join Date: Jul 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 style.aspx page

In chapter 8 dealing with themes, the style.aspx page for using conditional logic for CSS is not working for me in ASP.NET 2.0. I am using Visual Studio 2005 Pro with SP1 on an XP Pro machine.

Any ideas how to make it work?

Thanks,

Jim
 
Old August 6th, 2008, 05:48 PM
Wrox Author
 
Join Date: Sep 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to surfer5 Send a message via AIM to surfer5 Send a message via MSN to surfer5 Send a message via Yahoo to surfer5
Default

Hey Jim-

Can you put up here the conditional logic that is failing for you? If you can copy and paste it from your own project, I might be able to find the problem. Sometimes something seemingly insignificant can cause the entire thing not to work.

Case in point, I just helped another reader figure out how to get the CSS Adapaters to work on his project. The major problem? His CSS Class referenced AspNet-Gridview instead of AspNet-GridView. If you didn't immediately see the difference, the v isn't capitalized in his example but it is in the divs rendered by the adapters. And CSS is case-sensitive. So, when the browser was looking for the style rules for AspNet-GridView it couldn't find any and so it didn't apply any style.

Anyway, it is hopefully something as simple as that that you might spend all day looking at and not see but a fresh set of eyes might spot immediately. If you can post the code you are using, I can download it here and run it and see what I see.

Thanks!

-Jacob



Jacob J. Sanford
Author of Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages
Co-author of Professional SharePoint 2007 Design
 
Old August 6th, 2008, 05:52 PM
Wrox Author
 
Join Date: Sep 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to surfer5 Send a message via AIM to surfer5 Send a message via MSN to surfer5 Send a message via Yahoo to surfer5
Default

also, you might find benefit in downloading the original source code for this chapter:

http://media.wiley.com/product_ancil.../Chapter_8.zip



Jacob J. Sanford
Author of Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages
Co-author of Professional SharePoint 2007 Design
 
Old August 8th, 2008, 10:13 AM
Registered User
 
Join Date: Jul 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is my source code for the CSS conditional logic in style.aspx.
Code:
body
{
    font-size: xx-large;
    <% if(myTheme == "myFirstTheme") { %>
    <% if (browser == "IE") { %>
        background-color: Black;
        color: White;
    <%} else { %>
        background-color: steelblue;
        color: Silver;
    <%} %>
    <% } else { %>
        background-color: White;
        color: black;
    <% } %>
}
I am using IE7 on Windows XP SP3. Also, VS 2005 with .NET 2.0.50727

Thanks,

Jim
 
Old December 28th, 2010, 04:22 AM
Registered User
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Thanks for this





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 -- Style Sheet problem. Doug Happ BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 January 10th, 2008 01:14 PM
Chapter 17, p.568, "Style", deprecated attributes irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 October 22nd, 2006 08:41 PM
Problem: Page Style lost annsary ASP.NET 1.0 and 1.1 Professional 1 April 19th, 2006 08:42 PM
ANYONE: Page Break in Excel / Font Style shagaset Classic ASP Basics 4 December 20th, 2004 01:09 PM
Page Breaks and Font Style in Excel shagaset Classic ASP Professional 2 December 14th, 2004 10:30 AM





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