Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<asp:HyperLink ID="lnkforgetpwd" href="javascript:openPopup1('ForgetPassword.aspx')" runat="server">Forgot password

function openPopup1(strOpen) {
            open(strOpen, "Forgot Pop UP",
         "status=1, width=400, height=200, top=100, left=300");
        }
</script>

ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tmp", "<script type='text/javascript'>validatePopup();</script>", false);

function validatePopup()
{
  var txt;
    var r = confirm("your password is sent to your mail");
    if (r == true) {
        this.close();
    } else {
        txt = "You pressed Cancel!";
    }
   
}
Posted
Updated 31-Jul-14 20:33pm
v2
Comments
kedar001 1-Aug-14 1:30am    
not clear..., explain in detail
Abhishek Pant 1-Aug-14 1:38am    
not clear

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900