Re: Programatic Access to the Theme File in VS 2008;

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Better late than never for somebody to get back to you or anybody else wondering about this context but we can only dynamically change Themes, StyleSheetTheme or the MasterPage from the PreInit event.

That also means for those of us using Master Pages we are compelled to create and use a base class for all content pages that by default inherit from System.Web.UI.Page. Using a base class is the only way we can create a code block and use PreInit with Master Pages.


"Roger Stenson" <roger@xxxxxxxxxxxxxxx> wrote in message news:2463486F-73B5-4911-BD1B-BD1C8F5182CA@xxxxxxxxxxxxxxxx
Hi
I am creating a system that hopefully will be used by a lot of users each
having their own website
The system works as an add- on to an existing site and its appearance
needs to blend into to the mother site.

I can't see in VS 2008 any features to allow me to overwrite the values of
the CSS and Skin Files. In any case changing these at run time does not seem
very efficient. A cleaner way seems to be to present the User System
Administrator with a form to fill in in which he will supply the principle
appearance features of the web pages.
From this form I will write client-oriented CSS and Skin Files and install
them as themes in the App_Themes folder with a clientname. At run time I
can then use the features in VS2008 to vary the theme used by the
application e.g


Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As
System.EventArgs)
Page.Theme = Request.QueryString("ThemeChange")
End Sub



I would be grateful for advice on this approach or the alternatives used by
professionals


Roger Stenson


.



Relevant Pages

  • [ANNOUNCE] GIT 1.3.1
    ... The latest maintenance release GIT 1.3.1 is available at the ... All the new features and improvements start their life as ... I make feature release out of "master" branch periodically, ...
    (Linux-Kernel)
  • Re: Frontpage for editing ASP.Net pages?
    ... FP 2003 had some features added to it to begin ASP.Net support, ... is really built to be the tool for a designer to work with in concert with a ... It's a much better tool than FP and can work with Master ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to control the redirection
    ... Protected Sub Page_Load(ByVal sender As Object, ... if "x" exists as a pk in the master table, ... I would like to know if there is a simple way to control this redirection ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Good Resource for Converting Word 2008 Mac docs to Word 2007 PC?
    ... Are you _sure_ you're talking about Microsoft Word 2008 for Mac? ... Those all sound like features of a DTP program like InDesign, ... Where are the master pages? ...
    (microsoft.public.word.docmanagement)
  • Re: Win2k3 R2 SP2 promotion to DC in Win2k3 SP1 Domain
    ... Does it require DCs ... master for your domain. ... You need to install the R2 features on the servers ... the servers you want to participate in the replication group. ...
    (microsoft.public.windows.server.active_directory)