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

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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 February 27th, 2013, 10:50 PM
Authorized User
 
Join Date: Feb 2013
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
Default Page.Theme

on page 272 Chapter 7 can anyone explain what is the Page and Theme. I am

switch (Page.Theme.ToLower())

Thanks,
 
Old February 28th, 2013, 07:06 AM
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,

Page is a reference to the page that is currently being executed. Theme is a property on that page that defines the theme (a collection of CSS files, skins and more) for that page.

This code uses a switch block to look at the currently configured theme and uses that change the presentation of other elements on that 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!
 
Old February 28th, 2013, 12:18 PM
Authorized User
 
Join Date: Feb 2013
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thank you for the quick reply Imar. Do you know where I could get more info on the page class or page reference? Did I miss something somewhere in the book, that explains this?

BTW, I really like how your book is written and organized. Out of 7 chapters this is the first time I needed help.

Thank you, Imar.

Quote:
Originally Posted by Imar View Post
Hi there,

Page is a reference to the page that is currently being executed. Theme is a property on that page that defines the theme (a collection of CSS files, skins and more) for that page.

This code uses a switch block to look at the currently configured theme and uses that change the presentation of other elements on that page.

Hope this helps,

Imar
 
Old February 28th, 2013, 04:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

As suggested in the book, a great way to find more info is by searching for something like this in your favorite search engine:

TypeName Type MSDN

E.g. in this case you would search for:

Page class MSDN

This brings you to the main documentation on Page: http://msdn.microsoft.com/en-us/libr...b.ui.page.aspx

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply page theme ryanburnett BOOK: Beginning ASP.NET 4 : in C# and VB 20 September 17th, 2010 09:51 AM
Theme won't change in new content page lustigon BOOK: Beginning ASP.NET 4 : in C# and VB 1 June 21st, 2010 10:03 PM
Page Theme not sticking... gymwalker ASP.NET 3.5 Basics 4 November 14th, 2008 04:17 PM
Setting Theme in Master Page rodmcleay General .NET 12 April 9th, 2008 05:24 AM
page theme zhugeliang ASP.NET 2.0 Basics 1 January 9th, 2007 02:40 AM





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