themes and skins in ASP.NET 2.0

Q

Quynh

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
 
S

Scott Allen

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?
 
Q

Quynh

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
 
S

Scott Allen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top