473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Weird error - Literal content is not allowed within a 'skin file'

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

--
Alan Silver
(anything added below this line is nothing to do with me)
Jan 26 '06 #1
1 3687
>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.


And just after posting I came across the answer... I forgot to add the
runat="server" attribute!! Grr!! It would have been helpful if
intellisense had worked in skin files. It seems you are completely on
your own. You don't even get the toolbox to drag control definitions in.

Let this be a warning to anyone who comes across the same problem!!

--
Alan Silver
(anything added below this line is nothing to do with me)
Jan 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
14
by: nickdevx | last post by:
Without knowing "html before" and "html after" can anyone fathom any reason why the following code crashes IE but if I add <br/> after ANY <input> tags it doesn't? ...
10
by: RodBillett | last post by:
Using SmartNavigation. Windows2003 Server Framework 1.0 (3705) IIS6 and I have IIS configured to utilize the 1.0 framework. Any Ideas why I would be getting the following jscript error within...
0
by: Dave | last post by:
Can I create a user control so that when I drop it on the web form I can put text between the start and end tags as listed <uc1:KeyFeatures id="KeyFeatures1" runat="server"...
0
by: kelmen | last post by:
Greeting, I have a weird problem. Working fine before I incoporating theme and skin. my sample is an aspx file using masterpage. working fine. then when I incoporating theme and skin, keep...
0
by: John Smith | last post by:
This is what I am trying to do: <asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"...
4
by: Neo Geshel | last post by:
Just moved to C# from VB.NET, frustrated to hell and back by inability to get much-copied (from about 20+ different resources) literal example to work. Master Page content: <meta...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.