Last post Nov 29, 2009 04:03 PM by kansasfiddler
Nov 29, 2009 01:21 PM|kansasfiddler|LINK
I'm using asp.net 2.0 in Visual Studio 2005 and working in vb.net as my code behind.
I've searched this forum for solutions but haven't found any answers to this yet. Hopefully a resident genius here can resolve this issue with me.
I am using the CSS Friendly adapters in my masterpages website. The adapters are in my App_code directory. The generated sourcecode shows that they are in fact making it to the page.
The themes are in my App_Themes directory and are being applied to the site via the theme attribute to the pages node of my web.config file. The cssfriendly controls appear to be completely incapable of applying these themes. Even if I specify the theme
on the content page, only the masterpages and other content area elements are themed. On my LoginView I even specified skinid="LoginView" which is a direct reference to the skinid in the skin file.
The css file in the app_themes does impact all objects of that type. The .skin file is completely ignored.
Is this the designed behavior? It seems the skinned object sould work if there are no defined styles in the css file.
I hope I've given you enough to go on. If not ... ask away.
Thank you for your time!!
Nov 29, 2009 03:26 PM|ramesh866|LINK
pls post the code that you have in your web.config file and in your web page where you try to make direct reference of the skin file
Nov 29, 2009 03:32 PM|kansasfiddler|LINK
web.config entry (within in <system.web>)
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" theme="masterTheme" ... %>
Nov 29, 2009 03:34 PM|ramesh866|LINK
try putting the theme file directly under the project rather than App_Themes folder
Nov 29, 2009 04:03 PM|kansasfiddler|LINK
Then it complains that the theme "cannot be found in the application or global theme directories."
They get it to work on the asp.net/cssadapters page so I'm farily certain it can be done by anyone, assuming they haven't rewritten any handlers to make it work properly.
addendum -- I'm not 100% about this but I am leaning towards the idea that css friendly pages can only be styled with css and not with themes. I've been able to style them fine with css in the app_themes folder but when switching to themes the go default
on me. I'm still learning about how to use themes so I could be way off.