protected void Button1_Click(object sender, EventArgs e) { order_cust_keeper ok = new order_cust_keeper(); cylinder_dealer_keeper ck = new cylinder_dealer_keeper(); customer_keeper cust = new customer_keeper(); customer_class cc = cust.GetData(int.Parse(Session["user_id"].ToString())); cc._booking_count++; if (cc._subsidy_count > 0) { cc._subsidy_count--; } int cylinder_id = ck.assign(cc._dealer_id ); int id = ok.get_id(); ok.insert(id, int.Parse(Session["user_id"].ToString()), cylinder_id); TextBox7.Text = cylinder_id.ToString (); TextBox4.Text = id.ToString() ; cust.update(cc); }
protected void Button2_Click(object sender, EventArgs e) { customer_keeper ck = new customer_keeper(); string pass = TextBox4.Text; customer_class cc = (customer_class)Session["cc"]; cc._pass = pass; ck.update(cc); Label5.Text = "Customer Registered!"; }
protected void Button1_Click(object sender, EventArgs e) { customer_keeper ck = new customer_keeper(); customer_class cc = ck.GetData(int.Parse(TextBox1.Text)); if (CheckBox1.Checked) { cc._pass = TextBox3.Text; } cc._email = TextBox5.Text; cc._contact = TextBox6.Text; ck.update(cc); Label8.Text = "Account Successfully Updated!"; }