private void FormForgetPwdByPwdQuestion_Load(object sender, EventArgs e) { string strID = TxtID.Text.Trim(); SQLExecute excute = new SQLExecute(); DataSet ds = new DataSet(); ds = excute.GetUserAuthentication(strID); TxtPwdQuestion.Text = Convert.ToString(ds.Tables[0].Rows[0][0]); TxtPwdAnswer.Focus(); }
private void BtnCancel_Click(object sender, EventArgs e) { TxtPwdAnswer.Text = string.Empty; TxtPwdAnswer.Focus(); }