Search

You searched for the word(s): userid:683652

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
  • 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
Page 1 of 1 (2 items)