protected void Page_Load(object sender, EventArgs e) { //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //display the cart contents DisplayCart(); }
public void Bind() { DataTable dt = new DataTable(); dt = new clsCart().GetFCartContentbyID(tmpSessionUserID); txtQuentity.Text = dt.Rows[0]["quantity"].ToString(); lblAmount.Text = dt.Rows[0]["amount"].ToString(); lblText.Text = dt.Rows[0]["tax1"].ToString(); lblTotalAmount.Text = dt.Rows[0]["totalamt"].ToString(); //string Query1 = "select quantity from finance_cart where user_id='" + tmpSessionUserID + "'"; //int Quentity = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationManager.ConnectionStrings["converu6_xbrlEntities"].ToString(), CommandType.Text, Query1)); //txtQuentity.Text = Quentity.ToString(); //string Query2 = "select amount from finance_cart where user_id='" + tmpSessionUserID + "'"; //int Amount = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationManager.ConnectionStrings["converu6_xbrlEntities"].ToString(), CommandType.Text, Query2)); //lblAmount.Text = Amount.ToString(); //string Query3 = "select tax1 from finance_cart where user_id='" + tmpSessionUserID + "'"; //int tax = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationManager.ConnectionStrings["converu6_xbrlEntities"].ToString(), CommandType.Text, Query3)); //lblText.Text = tax.ToString(); //string Query4 = "select totalamt from finance_cart where user_id='" + tmpSessionUserID + "'"; //int TotalAmt = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationManager.ConnectionStrings["converu6_xbrlEntities"].ToString(), CommandType.Text, Query4)); //lblTotalAmount.Text = TotalAmt.ToString(); }
//dateReviewed protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } txtEmail.Text = Sec.UserEMail; reviewId = Convert.ToString(Request.QueryString["reviewId"].Trim()); email = Convert.ToString(Request.QueryString["Email"].Trim()); description = Convert.ToString(Request.QueryString["Description"].Trim()); rating = Convert.ToString(Request.QueryString["Rating"].Trim()); productId = Convert.ToString(Request.QueryString["ProductId"].Trim()); dateReviewed = Convert.ToString(Request.QueryString["DateReviewed"].Trim()); lblReviewId.Text = reviewId; txtEmail.Text = email; txtDescription.Text = description.ToUpper(); txtRating.Text = Convert.ToString(rating); txtProductId.Text = Convert.ToString(productId); txtDateReviewed.Text = dateReviewed.ToUpper(); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //you also need to get the product id from the query string InventoryId = Convert.ToInt32(Request.QueryString["InventoryId"].Trim()); Name = Convert.ToString(Request.QueryString["Name"].Trim()); Price = Convert.ToDecimal(Request.QueryString["Price"].Trim()); Description = Convert.ToString(Request.QueryString["Description"].Trim()); active = Convert.ToBoolean(Request.QueryString["Active"].Trim()); txtName.Text = Convert.ToString(Name); txtPrice.Text = Convert.ToString(Price); txtDescription.Text = Convert.ToString(Description); if (active == true) { chkAge.Visible = true; Label5.Visible = true; } else { chkAge.Visible = false; Label5.Visible = false; } }
protected void btnSubmit_Click(object sender, EventArgs e) { if (TandC.Checked) { tmp = new clsCart().InsFinanceCheckoutEntry(tmpSessionUserID, txtBillingName.Text.ToString().Trim(), txtBillingAddress.Text.ToString().Trim(), txtBillingCity.Text.ToString().Trim(), txtBilligState.Text.ToString().Trim(), txtBillingPostalCode.Text.ToString().Trim(), "India", txtEmail.Text.ToString().Trim(), txtBillingPhone.Text.ToString().Trim(), txtShipName.Text.ToString().Trim(), txtShipAddress.Text.ToString().Trim(), txtShipCity.Text.ToString().Trim(), txtShipState.Text.ToString().Trim(), txtShipPostalCode.Text.ToString().Trim(), "India", txtShipPhone.Text.ToString().Trim(), txtReferedBy.Text.ToString().Trim()); DataTable dt = new DataTable(); dt = new clsCart().GetTopMostFID(); int tmpID = Convert.ToInt32(dt.Rows[0]["id"].ToString()); if (tmp == 1) { Response.Redirect("frmFinanceProcess.aspx?id=" + tmpID); } else { convert2_xbrl.Show("Error in Checkout", this); } } else { convert2_xbrl.Show("Please Accept Terms and Condition", this); } }
//variables to store the values of the fields being passed from the FindCustomer page protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; ShopID = Convert.ToInt32(Request.QueryString["ShopId"].Trim()); shopName = Convert.ToString(Request.QueryString["ShopName"].Trim()); lblShopName.Text = Convert.ToString(shopName); lblShopId.Text = Convert.ToString(mShopId); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; MyCartList = (clsCartItem)Session["MyCartList"]; txtOrderTotal.Text = Session["Ordertotal"].ToString(); MyCart.Email = Sec.UserEMail; txtEmail.Text = Sec.UserEMail; txtDatePurchased.Text = DateTime.Now.Date.ToString("dd/MM/yyyy"); }
//variables to store the values of the fields being passed from the FindCustomer page protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; SellerShopLineID = Convert.ToInt32(Request.QueryString["SellerShopLineId"].Trim()); productName = Convert.ToString(Request.QueryString["ProductName"].Trim()); lblProductName.Text = Convert.ToString(productName); lblProductId.Text = Convert.ToString(mSellerShopLineId); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; InventoryId = Convert.ToInt32(Request.QueryString["InventoryId"].Trim()); txtProductId.Text = InventoryId.ToString(); txtEmail.Text = Sec.UserEMail; txtDateReviewed.Text = DateTime.Now.Date.ToString("dd/MM/yyyy"); }
protected void Page_Load(object sender, EventArgs e) { //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //if we don't know who the user is we need them to log in if (MyCart.UserNo == 0) { Response.Redirect("Login.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } txtEmail.Text = Sec.UserEMail; }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } txtEmail.Text = Sec.UserEMail; txtDateReviewed.Text = DateTime.Now.Date.ToString("dd/MM/yyyy"); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; Int32 Index; //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //get the index of the item to remove Index = Convert.ToInt32(Request.QueryString["Index"]); //remove the item in the query string MyCart.Products.RemoveAt(Index); //go back to view cart Response.Redirect("ViewCart.aspx"); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } //then you can display how many items are in your cart userEmail = Convert.ToString(Request.QueryString["Email"]); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; SellerShopLineID = Convert.ToInt32(Request.QueryString["SellerShopLineId"].Trim()); productName = Convert.ToString(Request.QueryString["ProductName"].Trim()); email = Convert.ToString(Request.QueryString["Email"].Trim()); description = Convert.ToString(Request.QueryString["Description"].Trim()); quantity = Convert.ToString(Request.QueryString["Quantity"].Trim()); price = Convert.ToString(Request.QueryString["Price"].Trim()); txtEmail.Text = email.ToString(); txtProductName.Text = productName.ToString(); txtPrice.Text = price.ToString(); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; ShopID = Convert.ToInt32(Request.QueryString["ShopId"].Trim()); shopName = Convert.ToString(Request.QueryString["ShopName"].Trim()); sellerName = Convert.ToString(Request.QueryString["sellerName"].Trim()); rating = Convert.ToString(Request.QueryString["Rating"].Trim()); email = Convert.ToString(Request.QueryString["Email"].Trim()); dateOpened = Convert.ToString(Request.QueryString["DateOpened"].Trim()); txtShopId.Text = mShopId.ToString(); txtEmail.Text = email.ToString(); txtOldShopName.Text = shopName.ToString(); txtOldSellerName.Text = shopName.ToString(); txtRating.Text = rating.ToString(); txtDateOpened.Text = dateOpened.ToString(); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; customerId = Convert.ToString(Request.QueryString["CustomerId"]); email = Convert.ToString(Request.QueryString["Email"]); phonenum = Convert.ToString(Request.QueryString["Phonenum"]); AccountBalance = Convert.ToString(Request.QueryString["AccountBalance"]); Bio = Convert.ToString(Request.QueryString["Bio"]); dateJoined = Convert.ToDateTime(Request.QueryString["DateJoined"]); name = Convert.ToString(Request.QueryString["Name"]); txtCustomerId.Text = customerId; txtEmail.Text = email; txtAccountBalance.Text = AccountBalance; txtPhonenum.Text = phonenum; txtBio.Text = Bio; lblCustomerName.Text = name; txtDateJoined.Text = dateJoined.ToString("dd/MM/yyyy"); }
public void CollectInforamtion() { DataTable dt = new DataTable(); dt = new clsCart().GetContetntByFID(tmpID); tmpTotalAmount = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationManager.ConnectionStrings["converu6_xbrlEntities"].ToString(), CommandType.Text, "select totalamt from finance_cart where user_id='" + tmpSessionID + "'")); bName = dt.Rows[0]["billing_name"].ToString(); bAdd = dt.Rows[0]["billing_address"].ToString(); bCity = dt.Rows[0]["billing_city"].ToString(); bState = dt.Rows[0]["billing_state"].ToString(); bZip = dt.Rows[0]["billing_zip"].ToString(); bEmail = dt.Rows[0]["billing_email"].ToString(); bTelephone = dt.Rows[0]["billing_telephone"].ToString(); sName = dt.Rows[0]["shipping_name"].ToString(); sAdd = dt.Rows[0]["shipping_address"].ToString(); sCity = dt.Rows[0]["shipping_city"].ToString(); sState = dt.Rows[0]["shipping_state"].ToString(); sZip = dt.Rows[0]["shipping_zip"].ToString(); sTelephone = dt.Rows[0]["shipping_telephone"].ToString(); referedBy = dt.Rows[0]["refered_by"].ToString(); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; CustomerID = Convert.ToInt32(Request.QueryString["CustomerId"].Trim()); email = Convert.ToString(Request.QueryString["Email"].Trim()); phonenum = Convert.ToString(Request.QueryString["Phonenum"]); AccountBalance = Convert.ToString(Request.QueryString["AccountBalance"].Trim()); Bio = Convert.ToString(Request.QueryString["Bio"].Trim()); dateJoined = Convert.ToDateTime(Request.QueryString["DateJoined"].Trim()); name = Convert.ToString(Request.QueryString["Name"].Trim()); txtCustomerId.Text = mCustomerId.ToString(); txtEmail.Text = email; txtName.Text = name; txtAccountBalance.Text = AccountBalance; txtDateJoined.Text = DateTime.Now.Date.ToString("dd/MM/yyyy"); //txtPhonenum.Text = ""; //txtBio.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } if (Sec.UserEMail.Length == 0) { Label2.Visible = true; } else { Label2.Visible = false; } txtEmail.Text = Sec.UserEMail; txtDateSubmitted.Text = DateTime.Now.Date.ToString("dd/MM/yyyy"); }
protected void Page_Load(object sender, EventArgs e) { Sec = (clsSecurity)Session["Sec"]; //upon loading the page you need to read in the cart from the session object MyCart = (clsCart)Session["MyCart"]; //if the cart is null then we need to initialise it if (MyCart == null) { MyCart = new clsCart(); } if (Sec == null) { //initialize the object Sec = new clsSecurity(); //update the session Session["Sec"] = Sec; } if (Sec.UserEMail.Length == 0) { Label1.Visible = true; btnAllProducts.Visible = false; btnSellerShops.Visible = false; btnAllSellerProducts.Visible = false; } else { Label1.Visible = false; btnAllProducts.Visible = true; btnSellerShops.Visible = true; btnAllSellerProducts.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { clsCart MyCart = new clsCart(); Int32 ProductID; }