visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: General :: Setting the "theme" through a variable


By: Elsa Lebannon  Date: 09/02/2007 16:09:34  English  Points: 20 Status: Answered
Quality : Excellent
Hi , i need to set a theme to a page (in masterpage)through a variable.
The value of the Theme is a vb variable, name Theme.

i've tried this code:
<head>
...
<link href="App_Themes/<%=Theme%>" rel="stylesheet" type="text/css" />
</head>

and
<script runat="server">
Function checkTheme() As String
Return "App_Themes/" & Theme
End Function
</script>
<head>
<link href='<%# checkTheme%>' rel="stylesheet" type="text/css" />
<head>

But they both don't work, how can i do it?
By: VGR Date: 09/02/2007 19:14:43 English  Type : Comment
hummm this is clearly a VBS/ASP question ;-)
I suppose this is an school exercise ? 'cause VBS is not W3C-approved and thus unsupported by all browsers except IE (45% market share)

is your page named .htm or .html ? It is possible the webserver isn't configured to parse it as a server-side script. Tell us a bit more ;-)
By: Elsa Date: 10/02/2007 09:10:18 English  Type : Comment
it's in ASP.net/ vb , the extension is .aspx
By: VGR Date: 10/02/2007 19:28:45 English  Type : Answer
do you get any error ? any webserver error ? what is the output ?
By: OpConsole Date: 04/07/2007 16:49:34 English  Type : Comment
Dear,

If you found some of the above comments to have proved helpful in solving your issue, you shall Accept the Answer or sPlit points between the various useful comments. Each one can receive a quality evaluation from + (somewhat helpful) to +++ (working solution).

Given this Question has been Open for quite a while now, please accordingly "accept an Answer" ASAP

This Question will be forced-closed in one month from now.

Thanks and regards.

Admin.

Do register to be able to answer

EContact
browser fav
page generated in 302.408930 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page