Beispiel #1
0
    protected void td_click(object sender, EventArgs e)
    {
        li.ccd = tcd.Text;
        DataTable dt1 = li.sss(li);

        string cardno = dt1.Rows[0]["Card_no"].ToString();
        string t      = "truck";

        li.tcd    = tcd.Text;
        li.crd    = tcd.Text;
        li.amount = 100 + "";
        li.type   = t;
        li.truck_ddct(li);

        li.ins_db(li);


        li.Eid = cardno;
        DataTable dt = li.database(li);
        string    email;

        if (dt1.Rows.Count > 0)
        {
            email = dt1.Rows[0]["Email_id"].ToString();
            string var = SendEmail(email, "Balance information", "100 RS is deducted from your account");
        }
        tcd.Text = null;
    }