Example #1
0
    protected void btn_change_Click(object sender, EventArgs e)
    {
        oldpass = txt_oldpass.Text;
        class_admin_login adm = new class_admin_login();
        int i = adm.comppass(oldpass, txt_newpass.Text);

        if (i == 1)
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('You Have Successfully Changed Password')", true);
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Wrong Old Password')", true);
        }
    }