Wrox Programmer Forums
|
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 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 May 2nd, 2012, 12:41 PM
Authorized User
 
Join Date: Apr 2012
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
Default overriding management pages

I added the web.config file in the management folder and change the pages theme property to empty string still the default pages show the actual or the default theme....what cud be the possibilities....
 
Old May 2nd, 2012, 01:09 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Hard to say without seeing the code for the web.config file and a description of your site's structure.

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!
The Following User Says Thank You to Imar For This Useful Post:
binaryspirit (May 2nd, 2012)
 
Old May 2nd, 2012, 01:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I just realized something. Maybe you based the pages in the Management folder on your custom Base Page template? If so, the code in the BasePage overrides the theme. You should be using standard Web Forms that inherit System.Web.UI.Page.

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!
The Following User Says Thank You to Imar For This Useful Post:
binaryspirit (May 2nd, 2012)
 
Old May 2nd, 2012, 03:43 PM
Authorized User
 
Join Date: Apr 2012
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
Default resolved

imar thanx for your concern, the code pages are derived from system.web.ui.pages only. I just deleted the stylesheettheme property from global web.config file and now its working as expected. But still don't get it, how the property is affecting this behaviour?
 
Old May 2nd, 2012, 03:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Just as it normally would: with that setting on, it applies the theme to all pages in the site, including those in the master page....

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:
binaryspirit (May 2nd, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages: Overriding header content sankerbrand ASP.NET 2.0 Basics 2 July 24th, 2006 12:16 PM
Overriding the TreeView Control Aaron Edwards ASP.NET 2.0 Basics 0 January 27th, 2006 05:48 PM
Overloading Overriding arv1980 VS.NET 2002/2003 2 January 22nd, 2006 12:55 AM
Overriding arv1980 VS.NET 2002/2003 0 January 21st, 2006 09:58 PM
Most efficient overriding technique jcsdeveloper C# 4 December 7th, 2005 04:18 PM





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