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 2 4348
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
Dale wrote:
Do you really have "runtat=server" or do you have "runat=server"?
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.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
Do you really have "runtat=server" or do you have "runat=server"?
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.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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 ?...
|
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...
|
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%"...
|
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...
|
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,...
|
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...
|
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...
|
by: scotty |
last post by:
Can a .skin file be created without visual studio?
Thanks,
Scott
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |