A
Alan Silver
Hello,
I am just converting a 1.1 web site to use version 2.0 of the framework
and have run into a weird problem trying to add a skin file.
I set up a theme, and moved the CSS file in there, no problem. I then
changed one of the <img> tags in the master page to look like...
<asp:Image ID="imgBsd" SkinId="imgBsd" runat="server" />
I created a skin file in the theme folder, and added the following...
<asp:Image SkinId="imgBsd" Imageurl="images/bsd.gif" border="0"
width="26" height="12" AlternateText="" />
When I try to run the page, I get the following error...
Literal content ('<asp:Image SkinId="imgBsd" Imageurl="images/bsd.gif"
border="0" width="26" height="12" AlternateText="" />') is not allowed
within a 'skin file'.
D:\WebSites\NewSite\App_Themes\Orange\Default.skin 1
Anyone able to explain this? I have used skin files before and had
similar content without error. I even tried copying in some content from
a skin file on another site (that works fine), but got the same error.
Any help appreciated. TIA
I am just converting a 1.1 web site to use version 2.0 of the framework
and have run into a weird problem trying to add a skin file.
I set up a theme, and moved the CSS file in there, no problem. I then
changed one of the <img> tags in the master page to look like...
<asp:Image ID="imgBsd" SkinId="imgBsd" runat="server" />
I created a skin file in the theme folder, and added the following...
<asp:Image SkinId="imgBsd" Imageurl="images/bsd.gif" border="0"
width="26" height="12" AlternateText="" />
When I try to run the page, I get the following error...
Literal content ('<asp:Image SkinId="imgBsd" Imageurl="images/bsd.gif"
border="0" width="26" height="12" AlternateText="" />') is not allowed
within a 'skin file'.
D:\WebSites\NewSite\App_Themes\Orange\Default.skin 1
Anyone able to explain this? I have used skin files before and had
similar content without error. I even tried copying in some content from
a skin file on another site (that works fine), but got the same error.
Any help appreciated. TIA