D
Dan
Hi,
i try to redirect to another aspx page with jscript. I use "OnClientClick"
but nothing happens.
I tried two ways.
What am i doing wrong?
Thanks
Dan
....
<form id="form1" runat="server">
<asp:Button ID="ContinueButton" runat="server" OnClientClick="return
profiel()" />
</form>
....
<script language="javascript" type="text/javascript">
function profiel()
{
//window.location.href="page2.aspx"
Response.Redirect("page2.aspx")
}
</script>
i try to redirect to another aspx page with jscript. I use "OnClientClick"
but nothing happens.
I tried two ways.
What am i doing wrong?
Thanks
Dan
....
<form id="form1" runat="server">
<asp:Button ID="ContinueButton" runat="server" OnClientClick="return
profiel()" />
</form>
....
<script language="javascript" type="text/javascript">
function profiel()
{
//window.location.href="page2.aspx"
Response.Redirect("page2.aspx")
}
</script>