protected void btnsubmit_Click(object sender, EventArgs e) { Hashtable data = new Hashtable(); data.Add("username", txtuname.Text); data.Add("securityques", cbsecques.SelectedItem.Text); data.Add("securityans", txtsecans.Text); bll clfrg = new bll(); int id; id = clfrg.forgotpwd(data); if (id != 0) { lblresult.Text = "A mail with your account details has been sent to your email id"; } else { lblresult.Text = "Please enter valid security question and answer"; } }