Results 1 to 3 of 3

Thread: Server tag not well formed error.

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    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

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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:
    1. <%@ Register TagPrefix="jh1" Namespace="YourControlLibraryNamespace" Assembly="YourControlLibrary" %>

  3. #3

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    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
  •  



Click Here to Expand Forum to Full Width