protected void Page_Load(object sender, EventArgs e) { if (Session["user_name"] == null) { Response.Redirect("signin.aspx"); } li.guname = Session["user_name"].ToString(); DataTable dt = li.pview(li); cardid.Text = dt.Rows[0]["card_no"].ToString(); }
protected void submit_click(object sender, EventArgs e) { li.guname = fp_uname.Text; DataTable dt = li.pview(li); string email = dt.Rows[0]["email_id"].ToString(); string pass = dt.Rows[0]["password"].ToString(); string card = dt.Rows[0]["card_no"].ToString(); string var = SendEmail(email, "Blace information", "Your password for" + card + "is" + pass); }
protected void submit_click(object sender, EventArgs e) { li.guname = fp_uname.Text; DataTable dt = li.pview(li); if (dt.Rows.Count > 1) { string email = dt.Rows[0]["email_id"].ToString(); string pass = dt.Rows[0]["password"].ToString(); string card = dt.Rows[0]["card_no"].ToString(); string var = SendEmail(email, "Blace information", "Your password for " + card + " is " + pass); } else { ClientScript.RegisterStartupScript(Page.GetType(), "validation", "<script language='javascript'>alert('Username doesn't exist')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["user_name"] == null) { Response.Redirect("adminsign.aspx"); } li.guname = Session["user_name"].ToString(); DataTable dt = li.pview(li); string card = dt.Rows[0]["card_no"].ToString(); li.ptcn = card; if (dt.Rows.Count > 1) { DataTable dt1 = li.tprofile(li); } //li.tp_uname = Session["user_name"].ToString(); if (!IsPostBack) { fillgrid(); } }