Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #1 (permalink)  
Old February 11th, 2013, 04:39 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2006
Location: Buckhurst Hill, Essex, United Kingdom.
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 6: Monochrome Theme does not work correctly in my browsers

Hello

i have two problems with the monochrome theme when I try to implement it:

Firstly the Sidebar does not float correctly, but appears underneath the main content
The code in monochrome.css reads

Code:
#Sidebar
{
/*
The Sidebar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
on a small page, the element gets a minimum height of 500px. This is ignored by IE 6.
*/
font-size: 0.8em;
color: White;
background-image: url(Images/Sidebar.jpg);
background-repeat: no-repeat;
background-color: #7773A1;width: 142px;
min-height: 500px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 20px;
float: left;
If I reduce the width to 137px (or less), the sidebar floats as expected. In fact trying to add up the various element widths I would have expected 142px to be correct.

Secondly the image menubackground.jpg starts to repeat to the right of the panel - you can see just a bit of the left hand side of the image repeating. I have fixed this by putting

Code:
background-repeat: no-repeat;


in the #MenuWrapper element code - so should this go in the Errata?

This is with IE9,
and Google Chrome 24.0
Many thanks

Rodger.

Reply With Quote
  #2 (permalink)  
Old February 11th, 2013, 08:55 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

That doesn't sound right. Do you have the same issue on www.planetwrox.com?

Can you post the full code for your CSS file, your Master Page and the browser's HTML of Default.aspx (e.g. the final result in the browser)? When you post code here, please paste it in Notepad first to get rid of the color coding. There's a stupid bug in this forum that messes up formatted code.

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
rodgerpb (February 12th, 2013)
  #3 (permalink)  
Old February 12th, 2013, 04:38 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2006
Location: Buckhurst Hill, Essex, United Kingdom.
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Code Information for Monochrome Theme Problem

Hi Imar

Firstly I don't see the problem in planetwrox.com - so it has to be something in my code

Here is the code from momchrome.css

*
{
/*
Defines the main font used throughout the entire site
*/
font-family: Arial, Sans-Serif;
}
body
{
/*
Clears white space around the body and gives it a dark gray color.
*/
margin: 0;
background-color: #cccccc;
}
a
{
/*
Clears the underline on normal links, and gives them a purple text color.
*/
text-decoration: none;
color: #4628C4;
}
a:hover
{
/*
Underlines links when the user hovers the mouse over them.
*/
text-decoration : underline;
}
h1
{
/*
Makes h1 elements smaller than their browser default.
*/
font-size : 20px;
}
h2
{
/*
Gives h2 elements a different background color and size,
and adds a bit of margin at the top to create room between the heading and the preceding element.
*/
font-size : 14px;
color : #7773A1;
margin-top : 10px;
}
#PageWrapper
{
/*
Sets the total width for the entire page. Also sets the background-color
which is used to fill the background of the Sidebar in case the MainContent block is taller than the Sidebar.
Uses margin: auto to center the entire page in the middle of the browser's window.
*/
width: 844px;
background-color: #7773A1;
margin: auto;
}
#Header
{
/*
Gives the header the same width as the PageWrapper. The height creates some room for the logo
that is set with the background-image.
*/
background-image: url(Images/Header.jpg);

width: 844px;
height: 86px;
}
#Header a
{
/*
The #Header a is a link nested in #Header. It provides a link back to the homepage.
The size of the link is the same as the header, so the entire header is clickable.
*/
width: 844px;
height: 86px;
display: block;
}
#MenuWrapper
{
/*
The menu spans the page width, right below the header.
At the top and left a few pixels padding is applied to create some room.
*/
background-image: url(Images/MenuBackground.jpg);
/* I put this in to stop the image repeating over the right hand edge */
background-repeat: no-repeat;
width: 827px;
height: 36px;
padding-top: 7px;
padding-left: 17px;
}
#MenuWrapper a
{
/*
Links in the Menu are white. This gets overriden by styles in chapter 7.
*/
color: #fff;
}
.MainMenu
{
/*
The Menu gets a white border on all four sides.
*/
border: 1px solid white;
width: 814px;
height: 19px;
background-color : #cccccc;
}
.MainMenu ul li
{
/*
Gives the four menu items in the main menu a width of 200px each
*/
width: 200px;
}
#MainContent
{
/*
Defines the main content area. The #MainContent element has a minimum height of 500 pixels, but can grow if necessary.
The font-size is 80% of its parent element, which in this case comes down to 80% of the font
the user has specified as the default font in the browser.
*/
font-size: 0.8em;
width: 659px;
border-left: 1px solid white;
border-right: 2px solid white;
float: left;
background-color: #e1e1e1;
min-height: 500px;
padding: 10px;
}
#Sidebar
{
/*
The Sidebar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
on a small page, the element gets a minimum height of 500px. This is ignored by IE 6.
*/
font-size: 0.8em;
color: White;
background-image: url(Images/Sidebar.jpg);
background-repeat: no-repeat;
background-color: #7773A1;
/*
The width setting in the original file was 142px, which stopped the sidebar from floating
*/
width: 137px;
min-height: 500px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 20px;
float: left;
}
#Footer
{
/*
The footer is positioned below all other content (yet still within PageWrapper).
clear: both is used to clear the impact of the float properties used for #MainContent and #Sidebar.
*/
width: 844px;
clear: both;
height: 37px;
background-color : #BCD1FE;
color: White;
text-align: center;
font-size: 0.7em;
font-weight: bold;
line-height: 37px;
}
.Introduction
{
font-style: italic;
color: #3e3e3e;
}

..and the code from the Master Page

<%@ Master Language="VB" CodeFile="FrontEnd.master.vb" Inherits="MasterPages_FrontEnd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div id = "PageWrapper">

<div id = "Header">
<a href= "~/" runat="server"></a>
</div>

<div id="MenuWrapper">Menu Goes Here</div>
<div id = "MainContent">
<asp:ContentPlaceHolder id="cpMainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<div id = "Sidebar">Sidebar goes here</div>
<div id = "Footer">Footer goes here</div>
</div>
</form>
</body>
</html>

..and the rendered HTML from default.aspx


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Monochrome/Monochrome_bak.css" type="text/css" rel="stylesheet" /><title>
Planet Wrox
</title>
<link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Monochrome/Monochrome_bak.css" type="text/css" rel="stylesheet" /></head>
<body>
<form method="post" action="Default.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1MmRkd+tBS/sHseTAHY4/8YrhopamE4/w+B8QsIiY6I/DzSc=" />
</div>

<div id = "PageWrapper">

<div id = "Header">
<a href="./"></a>
</div>

<div id="MenuWrapper">Menu Goes Here</div>
<div id = "MainContent">

<h1 class="Introduction">
Hi there Visitor and Welcome To Planet Wrox</h1>
<p>
<span class="Introduction">We're glad that you're paying a visit to
<a href="http://Default.aspx">look around</a>.&nbsp; There are loads of pictures and review
available to download for free from the site.</span></p>
<p>
You can login <a href="Login.aspx">here</a></p>
</div>
<div id = "Sidebar">Sidebar goes here</div>
<div id = "Footer">Footer goes here</div>
</div>
</form>
</body>
</html>


Many thanks

Rodger
PS Great book by the way !
Reply With Quote
  #4 (permalink)  
Old February 12th, 2013, 04:56 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2006
Location: Buckhurst Hill, Essex, United Kingdom.
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Monochrome Theme Problem - *FIXED*

Hi Imar

Not to worry...I fixed the problem myself!

What had happened was that I had created a backup of an earlier version of monochrome.css, called it monochrome_bak.css and left it in the App_Themes folder. This must have had some conflicting settings.

I spotted when I looked at the rendered HTML from the default.aspx (shown above) which said

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Monochrome/Monochrome_bak.css" type="text/css" rel="stylesheet" />

i.e. it had embedded two style sheets

Thanks for offering to look and see what had happened

Regards

Rodger
Reply With Quote
  #5 (permalink)  
Old February 13th, 2013, 02:25 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Ah, yes, that would explain it. ASP.NET includes each style sheet it finds in App_Themes in the page.

Glad you figured it out.

>> PS Great book by the way

Good to hear you like it.

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!
Reply With Quote
  #6 (permalink)  
Old February 14th, 2013, 01:56 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having the same kind of issue

Quote:
Originally Posted by rodgerpb View Post
Hello

i have two problems with the monochrome theme when I try to implement it:

Firstly the Sidebar does not float correctly, but appears underneath the main content
The code in monochrome.css reads

Code:
#Sidebar
{
/*
The Sidebar is positioned to the right of the MainContent area. It gets the same font-size as #MainContent
and gets a background image called Sidebar.jpg. To ensure the image is visible in (most) browsers
on a small page, the element gets a minimum height of 500px. This is ignored by IE 6.
*/
font-size: 0.8em;
color: White;
background-image: url(Images/Sidebar.jpg);
background-repeat: no-repeat;
background-color: #7773A1;width: 142px;
min-height: 500px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 20px;
float: left;
If I reduce the width to 137px (or less), the sidebar floats as expected. In fact trying to add up the various element widths I would have expected 142px to be correct.

Secondly the image menubackground.jpg starts to repeat to the right of the panel - you can see just a bit of the left hand side of the image repeating. I have fixed this by putting

Code:
background-repeat: no-repeat;


in the #MenuWrapper element code - so should this go in the Errata?

This is with IE9,
and Google Chrome 24.0
Many thanks

Rodger.


Hey Rodger and Imar,

I was super happy to find this thread. I seem to be having a similar issue, except that it is occurring with my DarkGrey theme versus the Monochrome.

Everything looked the way it should as I was writing the code and testing. Once I coded in the Theme switching DropdownList things got wonky. The cookie works like a charm and the autopostback functions when I switch between the two. However, my DarkGrey seems to be holding onto bits and pieces of the Monochrome theme and the layout gets the layout as all sorts of crazy in the way you described.

I checked my source code for a backup file like you mentioned and it is pulling the correct file to read. I didn't have a back up. I tried deleting the DarkGrey theme and dropped the files back into my project from the source files I downloaded. This did not seem to affect my issue.

I went back into my page and hardcoded the DarkGrey theme and turned off dynamic switching with the same weird results. I'm having trouble locating the problem. I called my co-worker in to look at my code, him being the CSS master at work, and he couldn't see what was going on either.

When I go to the actual WROX website and switch between themes everything looks great. I'm a bit frustrated. I'll post the code below.

Here is the final result of the page in my browser:
Code:


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><title>
	Planet Wrox
</title>
<link href="App_Themes/DarkGrey/DarkGrey.css" type="text/css" rel="stylesheet" /></head>
<body>
    <form method="post" action="Default.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="6XOITSjPpISPla2VWUWBudDYagAPd6voeJhAHBC07ZsA+Mbz5Syq5VBhS3DgVTTwPQ3cfuhjer4jGMJsVMBv2IqVE4XrSdLJg3rXDDUDVzO108SccNOnAk74PuxrgUfZ" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<div class="aspNetHidden">

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="HeITf5lLIPFSYt64bEqmByYs9Ar7Wqo2z3hW0uPzyQZFWp13SH+PfMNp3+ZqoNAfJ0em+bv0bn5zbsXJVK6z/MFM2IUugQSBLPkzHZkhTUAHkDGFymK8f0pTxFLxsmwYqg2TRpVnS1MrcPEb0HCUtT/mAi6CqRg4KD2HcpC3NDE=" />
</div>
        <div id="PageWrapper">
            <div id="Header"><a href="./">Header Goes Here</a></div>
            <div id="MenuWrapper">Menu Goes Here</div>
            <div id="MainContent">
                
    <h1>Hi there visitor and welcome to Planet Wrox</h1>
    <p class="Introduction">
        We're glad you're <span class="auto-style1">paying a visit</span> to <a href="http://www.PlanetWrox.com">www.PlanetWrox.com</a>, the coolest music community site on the Internet.</p>
    <p class="Introduction">
        Feel free to <a href="http://p2p.wrox.com/Default.aspx">look around</a>; there are lots of interesting <strong>reviews and concert pictures</strong> to be found here.</p>
    <p>You can <a href="login.aspx">log in</a> here.</p>

            </div>
            <div id="Sidebar">
                Select a Theme <br />
                <select name="ctl00$ThemeList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ThemeList\',\'\')', 0)" id="ThemeList">
	<option value="Monochrome">Monochrome</option>
	<option selected="selected" value="DarkGrey">DarkGrey</option>

</select></div>
            <div id="Footer">Footer Goes Here</div>
        </div>
    </form>
</body>
</html>
Here is the MasterPage:
Code:
<%@ Master Language="VB" CodeFile="Frontend.master.vb" Inherits="Frontend_Frontend" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
        <div id="PageWrapper">
            <div id="Header"><a href="~/" runat="server">Header Goes Here</a></div>
            <div id="MenuWrapper">Menu Goes Here</div>
            <div id="MainContent">
                <asp:ContentPlaceHolder id="cpMainContent" runat="server">
                </asp:ContentPlaceHolder>
            </div>
            <div id="Sidebar">
                Select a Theme <br />
                <asp:DropDownList ID="ThemeList" runat="server" AutoPostBack="True">
                    <asp:ListItem>Monochrome</asp:ListItem>
                    <asp:ListItem>DarkGrey</asp:ListItem>
                </asp:DropDownList></div>
            <div id="Footer">Footer Goes Here</div>
        </div>
    </form>
</body>
</html>
Here is my Style Sheet:
Code:
*
{
  /* 
    Defines the main font used throughout the entire site 
  */
  font-family: Verdana, Arial, Sans-Serif;
}

body
{
  /* 
    Clears white space around the body and sets the background color to a dark grey.
  */
  margin: 0;
  background-color: #464646;
}

a
{
  /*
    Clears the underline on normal links, and gives them #da6637 as the text color.
  */
  color: #da6637;
  text-decoration: none;
}

a:hover
{
  /*
    Underlines links when the user hovers the mouse over them.
  */
  text-decoration: underline;
}

h1
{
  /*
    Makes h1 elements smaller than their browser default.
  */
  font-size: 20px;
}

#Header
{
  /*
    Sets the background of the header to the same color as the right-hand side of the 
    header image. This way, the header can expand to the right.
    The margin at the bottom creates some room between the header and the menu and the main content.
  */
  background-color: #574536;
  margin-bottom: 20px;
}

#Header a
{
  /*
    The #Header a is nested in the #Header. It provides a link to the homepage,
    and sets the header image background.
  */
  background-image: url(Images/Header.jpg);
  background-repeat: no-repeat;
  width: 944px;
  height: 138px;
  display: block;  
}

#MenuWrapper
{
  /*
    Floats the entire menu on the left of the content.
  */
  width: 130px;
  float: left;
  padding: 10px;
  padding-top: 0; /* Reset the top-padding. The first menu item (home) already adds some padding to its top to create room between the MenuWrapper and the first menu item */
  background-color: #E1E1E1;
  margin-left: 35px;
  margin-right: 20px;
  font-size: 0.8em;
}

.FirstLevelMenuItems
{
    padding-top: 10px;
}

#MainContent
{
  /*
    Defines the main content area. The text color is white (on the gray background set on the body).
    The #MainContent element has a minimum height of 370 pixels, but can grow if necessary.
    The font-size is 80% of its parent element, which in this case comes down to 80% of the font
    the user has specified as the default font in the browser.
  */
  color: white;
  font-size: 0.8em;
  width: 600px;
  min-height: 370px;
  padding: 10px;
  float: left;
}

#Sidebar
{
  /*
    The Sidebar is positioned absolutely at the right of the page.
    It has the same font-size and color as #MainContent
  */
  font-size: 0.8em;
  width: 124px;
  color: White;
  float: left;
  padding-top: 10px;
}

#Footer
{
  /*
    The footer is positioned below all other content.
    At the top, it gets a border with a dashed style, while all other sides have no border.
  */
  text-align: center;
  border-top: 2px dashed gray;
  height: 37px;
  clear: both;
  background-color: #8B3818;
}

.Introduction
{
  font-style: italic;
}
I appreciate any help you can provide me. I love the way the book is written and I am working through it extremely fast, but this snafu has got me miffed.

Thanks so much,

Adam

Last edited by Glycerine; February 18th, 2013 at 01:53 PM..
Reply With Quote
  #7 (permalink)  
Old February 15th, 2013, 07:24 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Do you still have the styleSheetTheme configured in web.config? That would explain why you see a mix of the two themes.

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!
Reply With Quote
  #8 (permalink)  
Old February 17th, 2013, 02:52 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2006
Location: Buckhurst Hill, Essex, United Kingdom.
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi There

From what I can see having the styleSheetTheme configured in web.config, when there are multiple styles being used plays havoc with the rendering, and gives all sorts of weird and unopredictable results (presumably goverened by the priority and existence rules in CSS
Reply With Quote
  #9 (permalink)  
Old February 18th, 2013, 01:42 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Awesome! Thank you.

Hey Imar and Rodger,

Thank you so much for the response. I did indeed have the theme still set in my Web.Config file.

As soon as I commented out the line everything worked perfectly.

I greatly appreciate the input so I can continue my learning.

Cheers,

Adam
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Chap 16 auto-generated password doesn't work correctly jkoyle BOOK: Beginning ASP.NET 4 : in C# and VB 1 November 13th, 2011 01:02 PM
PageMethods refuse to work correctly antonioplais ASP.NET 4 General Discussion 0 April 9th, 2011 09:53 PM
Chapter 14-Photo Album Pages Monochrome vs Dark Grey jlransford BOOK: Beginning ASP.NET 4 : in C# and VB 3 August 3rd, 2010 12:08 PM
Monochrome Theme jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 18th, 2010 12:45 PM



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


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