473,549 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.P rofile,
ProfileCommon). Settings.StyleS heetTheme
7 End Get
8 Set(ByVal value As String)
9 CType(Context.P rofile,
ProfileCommon). Settings.StyleS heetTheme = value
10 End Set
11 End Property
12 ...

I tried in my Page_PreInit to do something like Page.StyleSheet Theme =
Config.StyleShe etTheme. 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 1440

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

Similar topics

0
1760
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" CustomName=""/> <data defaultName="clxc0233" Type="String" CustomName="EndDate"/> </page> I want to generate java code like this :
4
1798
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 log in, and then dynamically associate that css file with the requested pages - but I'm looking for something much simpler and with better runtime...
2
1718
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 time instead of the requested theme. what's appends?????
10
2054
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 here.');return false;" title="Another message here." ... > We want the same thing copied to every image, which basically makes for repetitive, long code...
1
2711
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
1883
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 StylesheetTheme will be overruled by everything else (CSS, element styles and theme), but it's not the case in my example.. the red.css contains this:
0
1012
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 since I'm doing this in a user control I'm getting the error: "property 'StyleSheetTheme' cannot be declared overrides because it does not override...
2
3296
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 with CSS files, StyleSheets. It's a level of precedence lower then the page attribute 'Theme'. Both attributes refer to the name of a Theme folder...
6
2784
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 "apply", I need some script to do this overnight to stress the system, please let me know if any script availbale, appreciated. TV.
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7462
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7492
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.