473,378 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to apply a StyleSheetTheme to a page?

Hello,

How can I apply a StyleSheetTheme to a page at runtime?

My Default.aspx.vb code is as follows:

1 Partial Class _Default
2 Inherits Config
3 ...
And my Config.vb file is as follows:

1 Public Class Config
2 Inherits Page
3
4 Public Overloads Overrides Property StyleSheetTheme() As
String
5 Get
6 Return CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme
7 End Get
8 Set(ByVal value As String)
9 CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme = value
10 End Set
11 End Property
12 ...

I tried in my Page_PreInit to do something like Page.StyleSheetTheme =
Config.StyleSheetTheme. I get an error on this line as StyleSheetTheme
is not recognized under Config.

Anyway, could someone tell me how to apply the StyleSheetTheme at
runtime?

Thanks,

Miguel

Dec 29 '06 #1
0 1432

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Franck Perrin | last post by:
I'd like to know if there is a way to apply to successive XSL transformations on one XML file. I got this XML file : <page Action="N047"> <data defaultName="c0dos010" Type="String"...
4
by: Robert | last post by:
Are there any other ways to dynamically apply CSS styling to a page (without using inline CSS)? I'm sure I could dynamically generate a new and uniquely named CSS file "on the fly" when users...
2
by: Jéjé | last post by:
Hi, I have a web site with 3 themes. once the site is compiled I changing the stylesheetTheme option in the web.config has no effect!!!!! I continue to see the theme used at the compilation...
10
by: Chris Tomlinson | last post by:
Hi all, just a quickie. I hope someone has the answer. We have about 30 images on a page, and want to apply something like this to all of them: < ... oncontextmenu="alert('Message...
1
by: Rolf Welskes | last post by:
Hello, I set in the configuration file of the application: <system.web> <pages styleSheetTheme="E01_Theme01" /> ...... This works.
3
by: Bob | last post by:
Hi, i'm testing the order of application when it comes to styling with skin and CSS files and i come to contradiction between what i get and what i read about theme and CSS. I wrote that...
0
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm trying to programatically set a StyleSheetTheme for a web user control. I understand that in order to use the Page.StyleSheetTheme property I must override the base class property. But...
2
by: Marc | last post by:
I am studying a bit and I have encountered some reading stuff about skin files, css files and themes in asp.net. To me the name of the StyleSheetTheme page attribute has little a no connection...
6
by: tvnaidu | last post by:
Hi: Any stress test html script to test web page contains few radio buttons and apply. I have web page contains 8 radio buttons, just select on / off using radio button, then at the bottom, click on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.