I'm getting a strange error message when I attempt to run this code. It compiles fine. I'm trying to create na imagebutton - a clickeable image. Can you help me please?
AlternateText="Click here to calculate the amount"
Sub imgSubmit_Click(ByVal sender As Object, ByVal e As ImageClickEventArgs)
But I'm getting the following error message:
Control 'imgSubmit' of type 'ImageButton' must be placed inside a form tag with runat=server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Control 'imgSubmit' of type 'ImageButton' must be placed inside a form tag with runat=server.
It is in a form tag as follows:
<form id="DccResult" name="DccResult" action="DccSelection.aspx?BaseCurrency=EUR&Culture=EN&BaseAmount=166.56"
Any ideas? I'm confused! Please help!