i am trying to wrap my validation summary for createuserwizard to a modalpopup but dont knw hw to to call the javascript on createuserwizard1_createusererror event
javascript code on aspx
<script language="javascript" type="text/javascript">
// <! Javascript to show the modalpopup
function ShowModalDialog()
{
Page_ClientValidate();
if(!Page_IsValid)
$find('<%=AddUserVS_ModalPopupExtender.ClientID%>').show();
}
</script>
and i am trying to call it here
protected void CreateUserWizard1_CreateUserError(object sender, CreateUserErrorEventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "addScript", "ShowModalDialog()", true);
}
but its not doing anything