B
Ben
Hi;
I use ain asp.net the CreateUserWizard control for new users. When it's
done, i want to redirect them to another page (modifyprofile.aspx). This
works with the code below.
My question is: if i suppress the line "return false" in the javascript
function profile(), the user is created but not redirected to the other aspx
page. Can anybody explain me why?
Thanks
Ben
<asp:Button ID="ContinueButton" runat="server" CausesValidation="false"
CommandName="Continue"
Text="Log in and create your profile" OnClientClick="return profile()"
ValidationGroup="CreateUserWizard1" />
<script language="javascript" type="text/javascript">
function profile()
{
window.location.href="modifyprofile.aspx"
return false
}
</script>
I use ain asp.net the CreateUserWizard control for new users. When it's
done, i want to redirect them to another page (modifyprofile.aspx). This
works with the code below.
My question is: if i suppress the line "return false" in the javascript
function profile(), the user is created but not redirected to the other aspx
page. Can anybody explain me why?
Thanks
Ben
<asp:Button ID="ContinueButton" runat="server" CausesValidation="false"
CommandName="Continue"
Text="Log in and create your profile" OnClientClick="return profile()"
ValidationGroup="CreateUserWizard1" />
<script language="javascript" type="text/javascript">
function profile()
{
window.location.href="modifyprofile.aspx"
return false
}
</script>