By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,966 Members | 2,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,966 IT Pros & Developers. It's quick & easy.

Changing images and CCS dynamically?

P: n/a
I’m working on a C# ASP application in which they want to give the users the
ability to pic their color themes. Each theme has its own folder and the
images for each theme are named the same So that in theory, all I need to do
is dynamically change the scr tags of all the non server side images to be
the name of the folder.
Ex: <image scr=’/images/[theme]/leftcorner.jpg’/>

I’ve been pondering the best solution to make this work and I would
appreciate any insight you guys can provide.

Couple of questions:

1. Can make all the images sever side controls and change them in C#, but
this seems like overkill on ViewState in PostBack

2. Can you put <%=Request()%on the html tags so they can evaluated at the
server? I Kida like old ASP I tried this and it didn’t work, can this be
accomplished? My theory was that will all those requests would be processed
on the server, it would not affect the ViewState since it doesn’t have to
send AND receive the values, just reprocess the request each time. Am I wrong
in this thinking?

3. Can I define all my images in the CSS for each theme? I tried this, but
the images do not display when CSS is applied. I could only find
background-image tag in the style sheet. Is their another tag or element I
need to use
--
JP
..NET Software Developer

Apr 20 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.