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.
<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>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.
<%@. Register TagPrefix="jh1" Namespace="YourControlLibraryNamespace" Assembly="YourControlLibrary" %>
Got it fixed...strange though.
The TagPrefix in the page directive was "jha"
it was yelling because the control had "JHA"
go figure!?
No comments:
Post a Comment