Hi,
I have a function written in
vb.net (web application) that I need to call once the user clicks on the html image (I can't use a web control).
However, I get a javascript error 'Object not defined' when I click the image.
What am I doing wrong?
Please note that although I know a web server control would be much easier I can't use such a control on this page and therefore need a solution with a html control.
Thanks
HEADER.ASCX.
VB:
<body bgColor="white">
<table cellSpacing="2" cellPadding="0" bgColor="white" border="0">
<tr>
<td><IMG id="IMG1" src="site/empty_b.jpg" border="0" runat="server" onclick="ExitBtn()"></td>
</tr>
</table>
HEADER.
VB:
Public Function ExitBtn()
Request.Cookies("IBuySpy_FullName").Value = ""
Response.Cookies("IBuySpy_FullName").Expires = DateTime.Now.AddDays(-1)
IMG1.Visible = False
Response.Redirect("default.aspx")
End Function