473,729 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asp.Net 2.0 Skin Problem

Hello,

I created an Asp.Net 2.0 which contains a custom control.

I compiled the project and now I am using it in a web site.

The custom control contains a Panel, a Label and an Image.

Here is how the custom control code starts:

' Assembly Tag Prefix
<Assembly: TagPrefix("ByMe .Web.UI.WebCont rols", "ByMe")>

' -- [Namespace] -------------------------------------------

' WebControls
Namespace WebControls

' -- [Classes] -------------------------------------------

<Themeable(True ), DefaultProperty ("ID"), ToolboxData("<{ 0}:Feedback
runat=server></{0}:Feedback>") _
Public Class Feedback
Inherits WebControl
Implements INamingContaine r

...

I tried to add this custom control to my web site skin file:

<ByMe:Feedbac k runtat="server" />

However, I get the following error when I run the web site:

Parser Error Message: Literal content ('<ByMe:Feedbac k
runtat="server" />') is not allowed within a 'skin file'.

Does anyone has any idea why is this happening?

Thank You,

Miguel

Jan 10 '07 #1
2 4379
Hi,

I corrected that and now I get a new error:
Parser Error Message: Unknown server tag 'ByMe:Feedback' .

I don't know what is going on.
I added the library to the toolbox and dragged and instance to my page.
The following code was placed:

<%@ Register Assembly="ByMe. Web.UI" Namespace="ByMe .Web.UI.WebCont rols"
TagPrefix="ByMe " %>
<ByMe:Feedbac k ID="Feedback1" runat="server" />

Why do I get the parse problem with the Skin file?

Thanks,
Miguel

Dale wrote:
Do you really have "runtat=ser ver" or do you have "runat=serv er"?

Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA
"shapper" wrote:
Hello,

I created an Asp.Net 2.0 which contains a custom control.

I compiled the project and now I am using it in a web site.

The custom control contains a Panel, a Label and an Image.

Here is how the custom control code starts:

' Assembly Tag Prefix
<Assembly: TagPrefix("ByMe .Web.UI.WebCont rols", "ByMe")>

' -- [Namespace] -------------------------------------------

' WebControls
Namespace WebControls

' -- [Classes] -------------------------------------------

<Themeable(True ), DefaultProperty ("ID"), ToolboxData("<{ 0}:Feedback
runat=server></{0}:Feedback>") _
Public Class Feedback
Inherits WebControl
Implements INamingContaine r

...

I tried to add this custom control to my web site skin file:

<ByMe:Feedbac k runtat="server" />

However, I get the following error when I run the web site:

Parser Error Message: Literal content ('<ByMe:Feedbac k
runtat="server" />') is not allowed within a 'skin file'.

Does anyone has any idea why is this happening?

Thank You,

Miguel
Jan 10 '07 #2
Do you really have "runtat=ser ver" or do you have "runat=serv er"?

Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA
"shapper" wrote:
Hello,

I created an Asp.Net 2.0 which contains a custom control.

I compiled the project and now I am using it in a web site.

The custom control contains a Panel, a Label and an Image.

Here is how the custom control code starts:

' Assembly Tag Prefix
<Assembly: TagPrefix("ByMe .Web.UI.WebCont rols", "ByMe")>

' -- [Namespace] -------------------------------------------

' WebControls
Namespace WebControls

' -- [Classes] -------------------------------------------

<Themeable(True ), DefaultProperty ("ID"), ToolboxData("<{ 0}:Feedback
runat=server></{0}:Feedback>") _
Public Class Feedback
Inherits WebControl
Implements INamingContaine r

...

I tried to add this custom control to my web site skin file:

<ByMe:Feedbac k runtat="server" />

However, I get the following error when I run the web site:

Parser Error Message: Literal content ('<ByMe:Feedbac k
runtat="server" />') is not allowed within a 'skin file'.

Does anyone has any idea why is this happening?

Thank You,

Miguel

Jan 13 '07 #3

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

Similar topics

0
1110
by: Mark Dufour | last post by:
Hi all, I have just released Shed Skin 0.0.5. It fixes many bugs and adds many minor features to the Python builtins, most notably, the 'set' class. There have also been some optimizations on the C++ side. Finally, the README now better explains the compiler's limitations, and a TODO file has been added containing open bugs. I would like to invite anyone to try out this new version, especially if there were problems with 0.0.4. If you...
7
4972
by: Frédéric Mayot | last post by:
Hi I'm trying to define a skin for a custom control. I can't see how to do it... My custom control inherits from a TextBox but it doesn't recognize the skinID defined for asp:TextBox. Any idea ? Thanks, Fred
1
1307
by: Andre | last post by:
Hi, I'm using Visual Web Developer 2005 to create a .skin file. But i have a problem (i think) ;o) When editing my skin file, in the toolbox, i can only drag HTML controls.. the Server Control (In the Standard section of the toolbox) are disabled. In skin file we can only put server control, so, is it a problem or i'm missing something ?
0
2216
by: Kelvin.YuShen | last post by:
Hello there, I got a problem when I was uploading the skin I developed. Following is the code from my original skin template (skin.htm): <TABLE cellspacing="3" cellpadding="3" width="100%" border="0"> <TR> <TD class="toppane" colspan="3" valign="top"
1
2147
by: Frédéric Mayot | last post by:
Hi, I'm trying to apply skins to all my controls. I didn't want to specify a skin all the time, so I used a default skin. The problem is that I sometimes would like to override a property specified by the default skin (the width of a control) and it doesn't seem to work (asp ignored the overriden value). Thanks for you help,
1
3713
by: Alan Silver | last post by:
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" />
0
1342
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 getting error: The Controls collection cannot be modified because the control contains
31
2795
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed Python programs into optimized C++, and hence, highly optimized machine language. Besides many bug fixes and optimizations, these releases add the following changes: -support for 'bisect', 'collections.deque' and 'string.maketrans'
8
5145
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.