protected void Button1_Click(object sender, EventArgs e) { dml ob = new dml(); if (Session["username"] == null) { Session["flag"] = "1"; //Session["temp"] = HttpContext.Current.Request.Url.AbsoluteUri; Response.Redirect("WebForm7.aspx"); } else { //ob.booking_details(bookingid,userid ,modelid, colorid, submodelid, System.DateTime.Today, price, "T", bal_a); string bookingid = ob.inc1(); string price = ob.getprice(modelid, submodelid, colorid); bal = Int32.Parse(price) - Int32.Parse(Label4.Text); string bal_a = Convert.ToString(bal); string j = username; Session["submodel_id"] = submodelid; Session["colorid"] = colorid; Session["bookingid"] = bookingid; //Session["userid"] = userid; Session["modelid"] = modelid; Session["balalance"] = bal_a; Session["Adv"] = Int32.Parse(Label4.Text); Response.Redirect("Payment.aspx"); } }