app-themes

asp.net 2.0 global themes not working on new windows server 2008

We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\The...

Themed based usercontrol asp.net

Is there any way to use a specific usercontrols depending on which theme the site is using? Scenario: I am using themes in my asp.net project. I am going to have same codebase and different look and feel and so using themes & skins. Now the problem is if I want to have different headers & footers (which are usercontrols) depending on th...

app_themes css files and version number

I would like to be able to have a version number appended to a css file located in my app_themes folder in my asp.net website so that modification to the file would force the browser to get the file from the server instead of using the one in the cache. the css output path would look like ~/app_themes/blue/blue.css?v=1234 Any idea how...

Load WPF themes based on Monitor Resolution

I facing quite big problem with resolution in my WPF app, which will be used in Hospitals, customer is asked for BIG fonts and Controls so that they can see data clearly from the distance. The problem is now when application runs in 800X600 resolution, whole UI will get messed up, so I thought to define another theme for lower monitor ...

How can I get a change in resources to propagate throughout the application, including in ValueConverters?

I have an application that allows the user to change color schemes based on an external xaml file. When the user clicks on a MenuItem that contains the name of a theme, the following code executes: MenuItem mi = sender as MenuItem; string executingDirectory = Assembly.GetExecutingAssembly().Location.Substring(0, Assembly.GetExecutingAs...

App_Themes image gets requested from css

Normally when you have items like images or css in the theme folder they get nicely parsed and the url omits the App_Themes part. However I noticed for some background images, set in the css which comes from the same theme, that a request with the App_Themes/MyTheme/someimage.gif gets done. Resulting in an obvious 404 response. How does...

Can you move (or duplicate) the "special" .Net folders (App_*) in a subdirectory?

It is possible to have extra .Net "special" folders (App_Code, App_Themes, etc.) inside of a subdirectory, rather than in the root? I am integrating with a CMS that dumps an enormous amount of stuff in the root. I would like to keep all my stuff in a single subfolder, as this will greatly ease my SVN and deployment burden. As it sits,...

Add url parameter to css file in asp themes folder

I have written a bit of code that helps with versioning of js files. Essentially it spins around the current script manager and appends the javascript file path with an md5 hash of the file. So <script src="../Javascript/Navigation.js" type="text/javascript"></script> becomes <script src="../Javascript/Navigation.js?md5=70D2B4D1F236...

ASP.NET themes: How to tell if a theme name is valid before setting it as the theme of a page.

I imagine this would be simple, but I can’t find an answer. We set the theme of a page based on a query string parameter (like ‘?theme=theme1’ etc). I just want to know if there is an easy way to tell the theme name is valid, before setting it, or catching and handling the error if it is invalid. The error I get if the theme does not ...

Themes wont work when using Server Side Tags on an ASP.NET Page

The code for the asp.net page is: <div class="facebox_content"> <% if (CurrentUser.Role == "Free") { %> <table cellpadding="0" cellspacing="0" style="border-collapse:collapse;width:380px;"> <tr> <td> User Name : </td> <td> Membership Cost : </td> </tr> <tr> <...

I have a CSS file in my App_Themes folder - how can I apply it to my web user control?

Any help? I can't seem to figure it out. ...