473,394 Members | 1,759 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,394 software developers and data experts.

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 2550
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********@hotmail.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.odetocode.com> wrote in message
news:sq********************************@4ax.com...
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********@hotmail.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********@hotmail.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.odetocode.com> wrote in message
news:qd********************************@4ax.com...
On Thu, 26 Jan 2006 19:10:10 -0500, "Quynh"
<AA********@hotmail.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********@hotmail.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
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...
1
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
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...
1
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...
4
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...
11
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...
2
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...
1
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
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....
2
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...
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
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
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...
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.