Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 17th, 2006, 06:48 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing Stylesheet on runtime


  Hi There

I just want to ask how to change a style sheet on runtime.

Example
When user clicks the button named green, then style sheet of the website changes from default.css to green.css

 
Old February 17th, 2006, 09:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

If using 2.0, use themes, then you can change the theme programmatically in the onpreinit method or Preinit event. You set it by Page.Theme = "theme name".

Brian
 
Old February 17th, 2006, 10:03 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx Brian






Similar Threads
Thread Thread Starter Forum Replies Last Post
changing connection string at runtime kscase VB Databases Basics 2 July 3rd, 2007 10:47 AM
changing properties at runtime reza_ahmadi Java Espanol 0 December 26th, 2006 07:10 AM
Changing database at runtime joerage BOOK: Professional Crystal Reports for VS.NET 3 December 15th, 2006 05:55 PM
Changing Database Location in Runtime jstokes8447 Crystal Reports 0 December 28th, 2004 06:37 PM
Changing the page width and size at runtime janet_35 Crystal Reports 0 February 17th, 2004 06:24 AM





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