protected void cnt_sbm_click(object sender, EventArgs e) { li.t_uname = (Session["user_name"]).ToString(); li.t_amount = rechargeamount.Text; li.t_crdno = cardid.Text; li.t_type = Convert.ToString(1); li.ins_recharge(li); li.add(li); string a = rechargeamount.Text; DataTable dt = li.pview(li); string email = dt.Rows[0]["email_id"].ToString(); string ta = dt.Rows[0]["balance"].ToString(); string var = SendEmail(email, "Blace information", "your account is creadited with " + a + "RS your current balance is" + ta); rechargeamount = null; ClientScript.RegisterStartupScript(Page.GetType(), "validation", "<script language='javascript'>alert('Recharge Successful')</script>"); }
protected void recharge_click(object sender, EventArgs e) { li.rcg = cardid.Text; DataTable dt = li.archg(li); string user = dt.Rows[0]["user_name"].ToString(); li.t_uname = user; li.t_amount = rechargeamount.Text; li.t_crdno = cardid.Text; li.t_type = Convert.ToString(1); li.ins_recharge(li); li.add(li); string a = rechargeamount.Text; string email = dt.Rows[0]["email_id"].ToString(); string ta = dt.Rows[0]["balance"].ToString(); string var = SendEmail(email, "Blace information", "your account is creadited with " + a + "RS your current balance is" + ta); rechargeamount.Text = null; cardid.Text = null; }