Using asp.net 1.1 I habv the following button on my page..
This is within a server side form although the button is not a server control
Problem is the redirect kicks in straight away and 'MyPage.aspx' is opened straight away.
Why is the button's onClick event activating without actually clicking on it?
Cheers
It was so much simpler in classic asp
Code:
<input type="button" name="btnBack" value="BACK" onClick="<% Response.Redirect("MyPage.aspx")%>"/>
This is within a server side form although the button is not a server control
Problem is the redirect kicks in straight away and 'MyPage.aspx' is opened straight away.
Why is the button's onClick event activating without actually clicking on it?
Cheers
It was so much simpler in classic asp