Asp.Net 2.0 Skin Problem


S

shapper

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.WebControls", "ByMe")>

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

' WebControls
Namespace WebControls

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

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

...

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

<ByMe:Feedback runtat="server" />

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

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

Does anyone has any idea why is this happening?

Thank You,

Miguel
 
Ad

Advertisements

Ad

Advertisements

S

shapper

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.WebControls"
TagPrefix="ByMe" %>
<ByMe:Feedback ID="Feedback1" runat="server" />

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

Thanks,
Miguel
Do you really have "runtat=server" or do you have "runat=server"?

Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA


shapper said:
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.WebControls", "ByMe")>

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

' WebControls
Namespace WebControls

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

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

...

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

<ByMe:Feedback runtat="server" />

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

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

Does anyone has any idea why is this happening?

Thank You,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top