protected void btnPlaceOrder_Click(object sender, EventArgs e) { string productids = string.Empty; DataTable dt; if (Session["MyCart"] != null) { dt = (DataTable)Session["MyCart"]; } BLL.Class1 obj = new BLL.Class1(); GetMyCart(); //lblTransactionNO.Text = "Your Transaction No:-" + dt.Rows[0][0]; pnlOrderPlacedSuccessfully.Visible = true; pnlProducts.Visible = false; delCartProducts.Visible = false; pnlMyCart.Visible = false; pnlEmptyCart.Visible = false; }
protected void Button1_Click(object sender, EventArgs e) { string strname = FileUpload1.FileName.ToString(); FileUpload1.PostedFile.SaveAs(Server.MapPath("./logo.aspx") + strname); BLL.Class1 obj = new BLL.Class1(); string filename = Path.GetFileName(FileUpload1.PostedFile.FileName); obj.addproduct(TextBox1.Text, Convert.ToInt32(TextBox2.Text), strname); Server.Transfer("Logo.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { BLL.Class1 obj = new BLL.Class1(); DataTable dt = new DataTable(); dt = obj.loginUser(TextBox1.Text, PasswordTextBox.Text); if (dt.Rows[0][0] == null) { } else { string data = dt.Rows[0][0].ToString(); //Response.Redirect("Login.aspx?Ref=" + data); Response.Redirect("Add_product.aspx"); } }