473,795 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

themes and skins in ASP.NET 2.0

Hi,

I have a question regarding themes and skins in ASP.NET 2.0.
Since I have images in the application menu bar and since the menu bar is
defined in the web.sitemap file, how could I apply a theme (SkinID) to
modify the images ?

Thanks
Jan 26 '06 #1
5 2564
One way is to use <asp:Image SkinID="xyz">, where SkinID maps to a
skin with the specific image you want, i.e in the skin file:

<asp:Image runat="server" SkinID="xyz" ImageUrl="Image .png">

I have some tips like this in an article:
http://www.odetocode.com/Articles/423.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 25 Jan 2006 22:14:31 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote:
Hi,

I have a question regarding themes and skins in ASP.NET 2.0.
Since I have images in the application menu bar and since the menu bar is
defined in the web.sitemap file, how could I apply a theme (SkinID) to
modify the images ?

Thanks


Jan 26 '06 #2
But how can I do it within the web.sitemap file?

Thanks

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:sq******** *************** *********@4ax.c om...
One way is to use <asp:Image SkinID="xyz">, where SkinID maps to a
skin with the specific image you want, i.e in the skin file:

<asp:Image runat="server" SkinID="xyz" ImageUrl="Image .png">

I have some tips like this in an article:
http://www.odetocode.com/Articles/423.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 25 Jan 2006 22:14:31 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote:
Hi,

I have a question regarding themes and skins in ASP.NET 2.0.
Since I have images in the application menu bar and since the menu bar is
defined in the web.sitemap file, how could I apply a theme (SkinID) to
modify the images ?

Thanks

Jan 27 '06 #3
On Thu, 26 Jan 2006 19:10:10 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote:
But how can I do it within the web.sitemap file?


I'm sorry, I'm not undertanding how the web.sitemap file plays into
this. Do you put imageUrls in the sitemap, perhaps?

--
Scott
http://www.OdeToCode.com/blogs/scott/
Jan 27 '06 #4
Hi,

I have a menu defined as you can see below in the web.sitemap file where
there is an image beside each title.

<siteMapNode title="Edit" url="~/Edit.aspx" >

<siteMapNode title="House" url="~/house.aspx"
image="~/images/house.gif" />

<siteMapNode title="Garden" url="~/garden.aspx"
image="~/images/garden.gif" >

</siteMapNode>

Thanks

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qd******** *************** *********@4ax.c om...
On Thu, 26 Jan 2006 19:10:10 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote:
But how can I do it within the web.sitemap file?


I'm sorry, I'm not undertanding how the web.sitemap file plays into
this. Do you put imageUrls in the sitemap, perhaps?

--
Scott
http://www.OdeToCode.com/blogs/scott/

Jan 30 '06 #5
On Sun, 29 Jan 2006 20:17:04 -0500, "Quynh"
<AA********@hot mail.comAAAA> wrote:
Hi,

I have a menu defined as you can see below in the web.sitemap file where
there is an image beside each title.

<siteMapNode title="Edit" url="~/Edit.aspx" >

<siteMapNode title="House" url="~/house.aspx"
image="~/images/house.gif" />

<siteMapNode title="Garden" url="~/garden.aspx"
image="~/images/garden.gif" >

</siteMapNode>

Thanks


Ah, the ~ will have to be processed by ASP.NET. You should be able to
bind url to an asp:Image, or else call Page.ResolveUrl on the string.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Jan 30 '06 #6

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

Similar topics

1
1542
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 Platform: XP Pro, .net 2.0 FrameWork, Visual Studio 2005 Problem Regarding:
1
1366
by: RG | last post by:
Is there a repository of themes and skins that could be downloaded from some place? Is there a visual designer for themes and skins allowing you to generate App_Themes files? Thanks in advance
5
1965
by: Sol | last post by:
Hi Guys, I'm looking for some advice / guidelines on using Themes with an application I am working on. The application needs to allow people to customize the appearance utilizing what I would consider to be a Themeing and Skinning mechanism. What is critical is that this should be as flexible as possible. What I would like to do is use the built-in Themeing mechanism to allow the customization, but as we know, the App_Theme folder...
1
1145
by: Griff | last post by:
We're replacing a CLASSIC ASP application. In this application, we presented a dialogue box that allowed end users to specify exactly how they wanted their screen to look. So, they could set the font size, font colour, border widths/style/colour etc, etc. This information was then held in a database. When the ASP page was loaded, it used an INCLUDE function to include a file "application.css.asp". This was effectively an ASP page...
4
1685
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu which now work just fine with all my themes on my development machine but on my production server my non-standard themes are showing effects that are no longer in place even with a complete re-copy of my project. Problems like this with...
11
6621
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand where this would be used. As I understand it the precidence is like this.
2
1771
by: mike | last post by:
Hi. I am having trouble grasping the concept of applying a consistent theme to an ASP.net website. I didn't used to like ASP because it was too hard to apply a theme from a common theme folder like I could do easily in PHP, but now I see that it has some nicer theming features and master files. So I want to use web.config to switch which theme I'm using, and I want to be able to have several themes. My understanding of themes is that I...
1
1695
by: lander | last post by:
where can I find some good-looking asp.net themes?????????? It's really time-consuming to write skins in asp.net 2.0......Where can i find some reusable skins? Thanks really!!!
1
1787
by: Cramer | last post by:
According to the MSDN docs, we cannot programatically create our own themes or skins: "Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. These classes are used by the ASP.NET parser and runtime ... " (from http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx). My question: Is there really no way that we can programmatically create our own themes and have ASP.NET...
2
1279
by: Tim Royal | last post by:
With CSS being so prevalent, how common is the use of the asp.net Skins and Themes? I'm examining my methodology for setting up sites for some folks, and the idea of having using Themes seems compelling. However, I'm seeing alot of emphasis on using CSS markup. Are folks still actively using themes? Thanks for any input. Tim
0
9672
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.