protected void btnEmail_Click(object sender, EventArgs e) { string Email; Email = txtEmail.Text; ForgotPassword fp = new ForgotPassword(); int result = fp.CheckingEmailIdInDataBase(Email); if (result == 1) { lblShowResult.Text = "Ok...EmailId Exists"; } else { lblShowResult.Text = "Please Try Again"; } }