Languages :: General :: Setting the "theme" through a variable |
|||
| By: Elsa |
Date: 09/02/2007 16:09:34 |
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 | 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 | Type : Comment |
|
| it's in ASP.net/ vb , the extension is .aspx | |||
| By: VGR | Date: 10/02/2007 19:28:45 | Type : Answer |
|
| do you get any error ? any webserver error ? what is the output ? | |||
| By: OpConsole | Date: 04/07/2007 16:49:34 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








