Hi,
I'm testing theme and dtylesheettheme properties of 'Page' like this:
('test' is a directory of App_Themes).
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreInit
'Page.Theme = "test"
Page.StyleSheetTheme = "test"
End Sub
With Page.Theme, no problem, but with Page.StylesheetTheme, i get the error:
"The StyleSheetTheme property cannot be set, please override the property
instead"
When putting it into the aspx file, it works:
<%@ Page Language="VB" StylesheetTheme="test" CodeFile="theme.aspx.vb"
Inherits="theme" %>
How to correct that?
Thanks
Ben 4 3313
On Mar 14, 9:29 am, "Ben" <b...@mail.dewrote:
>
With Page.Theme, no problem, but with Page.StylesheetTheme, i get the error:
"The StyleSheetTheme property cannot be set, please override the property
instead"
Ben, check the last post here: http://forums.asp.net/thread/999603.aspx
Hi Alexey, thaks for replying.
I found this in your link:
public override string StyleSheetTheme
{
get{ retrun "MyStyleSheetTheme"; }
}
It's C# and I translated it into:
public override StyleSheetTheme() as string
get
return "test"
end get
end property
but i can't put it into event PreInit nor in Page OnLoad, so where do i have
to put it and how to link it to the code-behind file?
Thanks
"Alexey Smirnov" <al************@gmail.comschreef in bericht
news:11**********************@y66g2000hsf.googlegr oups.com...
On Mar 14, 9:29 am, "Ben" <b...@mail.dewrote:
>> With Page.Theme, no problem, but with Page.StylesheetTheme, i get the error: "The StyleSheetTheme property cannot be set, please override the property instead"
Ben, check the last post here: http://forums.asp.net/thread/999603.aspx
On Mar 14, 11:15 am, "Ben" <b...@mail.dewrote:
Hi Alexey, thaks for replying.
I found this in your link:
public override string StyleSheetTheme
{
get{ retrun "MyStyleSheetTheme"; }
}
It's C# and I translated it into:
public override StyleSheetTheme() as string
get
return "test"
end get
end property
but i can't put it into event PreInit nor in Page OnLoad, so where do i have
to put it and how to link it to the code-behind file?
As I understood this post http://www.vikramlakhotia.com/Dynami...aspnet_20.aspx
your page has to be inherited from, say, "basewebpage" which inherits
from System.Web.UI.Page and then StyleSheetTheme has to be placed in
basewebPage
I found also another interesting post, take a look at http://weblogs.asp.net/scottgu/archi...ASP.NET--.aspx
Ok, thanks ...
"Alexey Smirnov" <al************@gmail.comschreef in bericht
news:11*********************@e65g2000hsc.googlegro ups.com...
On Mar 14, 11:15 am, "Ben" <b...@mail.dewrote:
>Hi Alexey, thaks for replying.
I found this in your link: public override string StyleSheetTheme { get{ retrun "MyStyleSheetTheme"; }
}
It's C# and I translated it into: public override StyleSheetTheme() as string get return "test" end get end property
but i can't put it into event PreInit nor in Page OnLoad, so where do i have to put it and how to link it to the code-behind file?
As I understood this post http://www.vikramlakhotia.com/Dynami...aspnet_20.aspx
your page has to be inherited from, say, "basewebpage" which inherits
from System.Web.UI.Page and then StyleSheetTheme has to be placed in
basewebPage
I found also another interesting post, take a look at http://weblogs.asp.net/scottgu/archi...ASP.NET--.aspx This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: pnp |
last post by:
Hi all,
Could I use an external dll (that windows also use for it's themes) from
which my application could load it's graphics at runtime? Basically I wan't
to be able to select the styles for my...
|
by: Chenghui Li |
last post by:
We have a problem with the Windows XP theme:
We have a IDE which allows other developers to develop visual programs for their customers.
Our IDE allow them to set font for window captions easyly...
|
by: Patrick.O.Ige |
last post by:
Any ideas how to have users select different color for a website in ASP.NET?
Any artticles would be appreciated!
|
by: kfc1976 |
last post by:
Hi All,
First of all, following are the facts
1) I've been trying to solve the following issue for the past 8 hours
(Not Kidding)
2) If I can't find the answer, It will drive me completely crazy...
|
by: |
last post by:
I want to define a style that automatically associates a specific image with
certain IMG elements. Is there a way to do this with ASP.NET? If I use an
ASP.NET image control and specify a class...
|
by: Joey |
last post by:
Hello,
I have tried to programmatically set the theme for my master page by
putting code in a "Page_PreInit" fuction in the master page's code
behind. However, when I set a breakpoint there and...
|
by: Ron |
last post by:
I have an application that requires a login at each visit to the site and can
only be accessed by a login.
A user can have different themes depending if it was assigned in there
profile.
Theme...
|
by: =?Utf-8?B?SGFyZHkgV2FuZw==?= |
last post by:
Hi all,
I am building a web site with theme support, under each theme's folder there
are some images. Some of my images need to be skinned, I know I can build a
skin file with line like
...
|
by: greg |
last post by:
Hi all,
Is there a way to get the current theme name at design time?
I'm trying to write a custom control for which I need to use images from the
current theme. I have asigned a theme to the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |