Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 10th, 2008, 03:08 PM
Registered User
 
Join Date: Jul 2008
Location: Dawsonville, GA, USA.
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
Reply With Quote
  #2 (permalink)  
Old August 6th, 2008, 06:48 PM
Wrox Author
 
Join Date: Sep 2006
Location: Tallahassee, FL, USA.
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
Reply With Quote
  #3 (permalink)  
Old August 6th, 2008, 06:52 PM
Wrox Author
 
Join Date: Sep 2006
Location: Tallahassee, FL, USA.
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
Reply With Quote
  #4 (permalink)  
Old August 8th, 2008, 11:13 AM
Registered User
 
Join Date: Jul 2008
Location: Dawsonville, GA, USA.
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
Reply With Quote
  #5 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:41 PM
Problem: Page Style lost annsary ASP.NET 1.0 and 1.1 Professional 1 April 19th, 2006 09: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



All times are GMT -4. The time now is 06:12 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.