Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:683652
More Search Options
RSS Available
Matching Posts
Re: Do Masterpages have a preinit event?
I almost forgot to mention this. The original poster asked "If Masterpages do not have the preinit event, then how can I set the theme dynamically for all my pages that are based upon the single Masterpage?" The question points out something which can be misleading. Master pages are not objects from which pages that use them are derived. Rather, think of master pages as formatting files. The content pages are the top-level objects, with the "master" page being just an example
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
PaxGalactica
on 9/29/2006
Re: Do Masterpages have a preinit event?
I need to do this very thing as well: using master pages with dynamically chosen themes. And it can be done. While the master page object may not have the Page_PreInit() method, the content page object does! So, if I had two files "Pgo.master" and "Default.aspx" with the aspx page using the master page, the "Default.aspx.cs" file (I like using code-behind) could have code something like this: (C# code) public partial class _Default : System.Web.UI.Page { protected void
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
PaxGalactica
on 9/29/2006
Page 1 of 1 (2 items)
ASP.NET:
My Presentations in Europe (December 2009)
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online