KevinM
02-16-2006, 08:24 AM
Using asp.net 1.1 I habv the following button on my page..
<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 :rolleyes:
<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 :rolleyes: