|
-
May 24th, 2004, 12:21 PM
#1
Thread Starter
Frenzied Member
Server tag not well formed error.
I have created a custom image control everything works fine. It renders in the browser fine.
But when I drop the control in the webform, set the properties, go to html view, then back to design view. I get a gray box where my custom control was that says "Error Creating Custom Control" and then a message of "Server Tag is not well formed".
Anyone know why this would happen?
Here is how it looks in HMTL view from within the IDE.
Code:
<JHA:JHAImageRollover id="JHAImageRollover1" onclick="http://www.google.com" runat="server" BaseImage="/common/images/btn_search.gif" RolloverImage="/common/images/btn_cancel.gif"></JHA:JHAImageRollover>
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
May 25th, 2004, 07:50 AM
#2
I wonder how many charact
Is there are <@Register > tag on the top of the .aspx page that the control is on?
My guess is the page doesn't know anything about the control since its library is not registered with the page.
VB Code:
<%@ Register TagPrefix="jh1" Namespace="YourControlLibraryNamespace" Assembly="YourControlLibrary" %>
-
May 25th, 2004, 09:07 AM
#3
Thread Starter
Frenzied Member
Got it fixed...strange though.
The TagPrefix in the page directive was "jha"
it was yelling because the control had "JHA"
go figure!?
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|