Пример #1
0
 protected void btnGetPwd_Click(object sender, EventArgs e)
 {
     try
     {
         lblResult.Visible = false;
         BE.Id             = Convert.ToInt32(txtUname.Text);
         BE.Hint           = ddlQtns.SelectedItem.Text;
         BE.Answer         = txtAnswer.Text;
         InterfaceLayer IL       = BL;
         string         password = IL.RecoverPassWord();
         Page.RegisterClientScriptBlock("balu", "<script>alert('Your Password: "******"')</script>");
     }
     catch (Exception ex)
     {
         lblResult.Visible = true;
         lblResult.Text    = ex.Message;
     }
 }