Just a question regarding a themed webpage

G

Guest

Hello, problem is simple.

I have a website with atm 2 themes. Now i have both themes placed in
diffrent directories in the asp.net Themes folder
Themes
-Red
--CSS
--Images
-Blue
--CSS
--Images

So each theme has its own css folder and its own image folder.

I have a aspx page on that aspx page is a <asp:Image, how do i get this
<asp:Image to point to the folder of the current theme?
I tried to create a theme file inside of the folders red and blue with the
following:
<asp:Image Runat="server" ImageUrl="Images/" />
On the aspx page i have a image like this:
<asp:Image ID="Image2" runat="server" ImageUrl='logo.gif' />

Only problem is that it does not work, when i look at the source of the page
i see this:
<img id="Image2" src="App_Themes/Red/Images/" alt="" />

What i want is in the skinfile to be able to set a UrlPrefix, so when it is
used it gets this url prefix and then the above would work.

Is that possible?
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top