protected void Page_Load(object sender, EventArgs e) { List <Inovice> incl = new List <Inovice>(); BookingDAL bd = new BookingDAL(); Inovice inc = (Inovice)Session["Invoice"]; Custname = inc.CustName; Custph = inc.CustContact; Vname = inc.VenName; Vemail = inc.VenEmail; Vph = inc.VenContact; Basic = inc.Basic; Service = inc.ServiceType; }
protected void updateCount(object sender, EventArgs e) { tbl_CustomerLogin cust = new tbl_CustomerLogin(); int selectedVendorId = int.Parse(RadioButtonList1.SelectedItem.Value); Session["selectedVendor"] = selectedVendorId; cust = (tbl_CustomerLogin)Session["UserObj"]; string custname = cust.CustomerName; string custemail = cust.CustomerEmail; string custcontact = cust.ContactNumber; string ServiceType = Request.QueryString["ServiceType"]; bool _isBooked = bobj.BookingDetails(selectedVendorId, custname, custemail, custcontact); List <Inovice> incl = bobj.GenerateInvoice(selectedVendorId, custname, custcontact, ServiceType); Inovice inc = incl.First(); Session["Invoice"] = inc; Response.Redirect("../Invoice.aspx"); }