Hi,
I have an image which looks like a button. code as follows:
<input type="image" name="imgSubmit" id="imgSubmit" onmousedown="ValidateCurrencySelection()" src="images/EN.gif" alt="Click here to calculate the amount to be charged at the end of your booking" border="0" />
I am trying to handle the clicking on the image using the following code:
' Handles the clicking of the big yellow button
Sub imgSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles imgSubmit.Click
End Sub
Problem is though under the second "imgSubmit" I receive the following error message:
"Handles clause requires a WithEvents variable"
Anyone with any ideas how to solve this??
Merci,
G.
I have an image which looks like a button. code as follows:
<input type="image" name="imgSubmit" id="imgSubmit" onmousedown="ValidateCurrencySelection()" src="images/EN.gif" alt="Click here to calculate the amount to be charged at the end of your booking" border="0" />
I am trying to handle the clicking on the image using the following code:
' Handles the clicking of the big yellow button
Sub imgSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles imgSubmit.Click
End Sub
Problem is though under the second "imgSubmit" I receive the following error message:
"Handles clause requires a WithEvents variable"
Anyone with any ideas how to solve this??
Merci,
G.