Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 April 19th, 2017, 03:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> You'd think I would know this - but how do I attach my zip file here?

You can't. Just like with the images, you need to find an online resource, upload it there and link to it here.

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!
 
Old April 19th, 2017, 09:39 AM
Authorized User
 
Join Date: Mar 2017
Posts: 55
Thanks: 12
Thanked 0 Times in 0 Posts
Default zip file link

Okay, let's see if this works:

https://1drv.ms/u/s!AvRnCyI-3HeEhAt5xKawyHsSDTmk
 
Old April 20th, 2017, 04:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh, now I see. I think I asked for pretty much every file in your site, except for the one with the problem. Take a look at your main web.config:

Code:
<system.web>
  ...
  <pages theme="MainTheme" styleSheetTheme="MainTheme">
    <controls>
      <add tagPrefix="Wrox" tagName="Banner" src="~/Controls/Banner.ascx" />
  ...
</system.web>
You're setting the theme as well as the styleSheetTheme. This means that resetting only the theme to an empty string still links your MainTheme as part of the Style Sheet theme. The fix is to clear both:

Code:
<?xml version="1.0"?>
<configuration>
    <system.web>
      <pages theme="" styleSheetTheme="" />
    </system.web>
</configuration>
Hope this helps,

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 April 20th, 2017, 11:39 PM
Authorized User
 
Join Date: Mar 2017
Posts: 55
Thanks: 12
Thanked 0 Times in 0 Posts
Default

I thought for sure that was going to work, but it didn't, sorry.

I even closed out and came back in. But I still have the image as a background on my <nav> element.
Well, actually - it works in my browser, but the design view shows the theme (image).

Very odd. Is that the typical behavior (work in browser, show theme in design view?)

Here's what I have in the config file for Management folder now:

Code:
<?xml version="1.0"?>
<configuration>
    <system.web>
      <pages theme="" styleSheetTheme=""/>
    </system.web>
</configuration>

Last edited by papadan; April 20th, 2017 at 11:43 PM.. Reason: Tried it in browser
 
Old April 21st, 2017, 12:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, that may be by design. At run-time, ASP.NET looks at the web.config in each folder and applies (or resets) the theme accordingly. Looks like Visual Studio only looks at the root web.config...

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:
papadan (April 21st, 2017)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 6 - Themes vs. No Themes papadan BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 4 April 3rd, 2017 09:31 AM
Ch. 6 browser showing combination of the two themes C# only, VB is fine tmulher BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 2 May 15th, 2015 08:51 AM
Ch 6 Stuck on the DDL for Themes Aristide BOOK: Beginning ASP.NET 4.5 : in C# and VB 6 April 1st, 2014 10:37 PM
Ch 4 and Ch 13/15 - controls and the DataPager AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 February 24th, 2014 04:56 PM
Search ch 13, ch 16 sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 October 27th, 2009 04:44 PM





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