|
|
 |
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

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
|
|
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
|

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
|
|
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
|

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
|
|
|

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
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |