Online Shopping Project Report 5w6r44

  • ed by: Amit Verma
  • 0
  • 0
  • November 2019
  • PDF

This document was ed by and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this report form. Report 2z6p3t


Overview 5o1f4z

& View Online Shopping Project Report as PDF for free.

More details 6z3438

  • Words: 11,937
  • Pages: 100


using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web;

33

using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class __ : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString.HasKeys()) { string msg = Request.QueryString.Get(0).ToString(); if (msg == "") lblMessage.Text = "You are Logged out Successfully!"; else if (msg == "timeout") lblMessage.Text = "Session TIME OUT!
Please again."; } _.Focus(); } protected void __Authenticate(object sender, AuthenticateEventArgs e) { _ ob = new _(); bool success = ob.validate(_.Name.ToString(), _..ToString()); if (success) { Session["_id"] = _.Name.ToString(); Session.Timeout = 5; Response.Redirect("~//_home.aspx"); } else { lblMessage.Text = ""; } } }

34

Change using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { protected void cmdChangePwd_Click(object sender, EventArgs e) { string _id = Session["_id"].ToString(); _ _ = new _(); bool success = _.validate(_id, txtwd.Text); if (success) { success = _.change_pwd(_id, txtNPwd.Text); if(success) lblMessage.Text = " Changed Successfully"; else lblMessage.Text = "Failed to Change ."; } else lblMessage.Text = "Current is Incorrect"; } protected void cmdClear_Click(object sender, EventArgs e) { lblMessage.Text = ""; txtwd.Text = ""; txtNPwd.Text = ""; txtCNPwd.Text = ""; } }

<%@ Page Language="C#" MasterPageFile="~//_master.master" AutoEventWireup="true" CodeFile="change_pwd.aspx.cs" Inherits="_Default" Title="Untitled Page" %>



36



37

Edit delete <%@ Page Language="C#" MasterPageFile="~//_master.master" AutoEventWireup="true" CodeFile="edit_delete.aspx.cs" Inherits="_edit_delete" Title="Untitled Page" %> <script type="text/javascript" language="javascript"> function del_confirm() { return confirm("Do you really want to delete the Item?"); }
                


Edit  |

38

Delete


Edit  | Delete


Edit  | Delete




39



40

ControlToValidate="txtSubCat" ErrorMessage="*" ValidationGroup="er" rel="nofollow">






42




41




using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; using System.IO; public partial class _edit_delete : System.Web.UI.Page { _functions ob; DataSet ds; static string filename; static string image_url; static string Bfilename; static string Bimage_url; static int c_id, sc_id,p_id;

43

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ob = new _functions(); ds = ob.ddl_cat_fill(); if (ds != null) { ddlCategories.DataTextField = "c_name"; ddlCategories.DataSource = ds; ddlCategories.DataBind(); ddlCategories.Items.Insert(0, "Select a Category"); cat_invisible(); } else lblMessage.Text = "Failed to load Categories!"; } } protected void ddlCategories_SelectedIndexChanged(object sender, EventArgs e) { MultiView1.ActiveViewIndex = -1; if (ddlCategories.SelectedIndex == 0) { lblCatError.Text = "Select a Category"; cat_invisible(); } else { ob = new _functions(); c_id = ob.get_cid(ddlCategories.SelectedItem.Text); ds = ob.ddl_sub_cat_fill(c_id); if (ds != null) { lblCatError.Text = ""; ddlSubCat.Enabled = true; ddlSubCat.DataTextField = "sc_name"; ddlSubCat.DataSource = ds; ddlSubCat.DataBind(); ddlSubCat.Items.Insert(0, "Select a SubCategory"); lbtnCEdit.Visible = true; lbtnCDel.Visible = true; sub_cat_invisible(); } else lblMessage.Text = "Failed to load Sub-Categories!"; } } protected void ddlSubCat_SelectedIndexChanged(object sender, EventArgs e) {

44

MultiView1.ActiveViewIndex = -1; if (ddlSubCat.SelectedIndex == 0) { lblSubCatError.Text = "Select a Sub-Category"; sub_cat_invisible(); } else { ob = new _functions(); sc_id = ob.get_scid(c_id,ddlSubCat.SelectedItem.Text); ds = ob.ddl_product_fill(c_id,sc_id); if (ds != null) { lblSubCatError.Text = ""; ddlProducts.Enabled = true; ddlProducts.DataTextField = "p_name"; ddlProducts.DataSource = ds; ddlProducts.DataBind(); ddlProducts.Items.Insert(0, "Select a Product"); lbtnSCEdit.Visible = true; lbtnSCDel.Visible = true; products_invisible(); } else lblMessage.Text = "Failed to load Products!"; } } protected void ddlProducts_SelectedIndexChanged(object sender, EventArgs e) { MultiView1.ActiveViewIndex = -1; if (ddlProducts.SelectedIndex == 0) { lblProductError.Text = "Select a Product"; products_invisible(); } else { ob = new _functions(); p_id = ob.get_pid(c_id, sc_id,ddlProducts.SelectedItem.Text); lblProductError.Text = ""; lbtnPEdit.Visible = true; lbtnPDel.Visible = true; } } protected void cmdCSubmit_Click(object sender, EventArgs e) { string status = "false"; if (optCTrue.Checked == true) status = "true";

45

ob = new _functions(); bool success = ob.update_cat(c_id, txtCat.Text, status); if (success == true) { ds = ob.ddl_cat_fill(); ddlCategories.DataTextField = "c_name"; ddlCategories.DataSource = ds; ddlCategories.DataBind(); ddlCategories.Items.Insert(0, "Select a Category"); cat_invisible(); lblMessage.Text = "Category Updated Successfully."; MultiView1.ActiveViewIndex = -1; } else lblMessage.Text = "Failed to Update Category."; } protected void cmdSCSubmit_Click(object sender, EventArgs e) { string status = "false"; if (optSCTrue.Checked == true) status = "true"; ob = new _functions(); bool success = ob.update_sub_cat(c_id, sc_id, txtSubCat.Text, status); if (success == true) { ds=ob.ddl_sub_cat_fill(c_id); ddlSubCat.DataTextField = "sc_name"; ddlSubCat.DataSource = ds; ddlSubCat.DataBind(); ddlSubCat.Items.Insert(0, "Select a SubCategory"); sub_cat_invisible(); lblMessage.Text = "Category Updated Successfully."; MultiView1.ActiveViewIndex = -1; } else lblMessage.Text = "Failed to Update Category."; } protected void cmdSubmit_Click(object sender, EventArgs e) { string status = "false"; if (optTrue.Checked == true) status = "true"; ob = new _functions(); bool success = ob.update_prod(c_id, sc_id, p_id, txtPname.Text, image_url,Bimage_url, txtPrice.Text, txtFeatures.Text, status); if (success == true) { ds = ob.ddl_product_fill(c_id, sc_id); ddlProducts.DataTextField = "p_name"; ddlProducts.DataSource = ds; ddlProducts.DataBind(); ddlProducts.Items.Insert(0, "Select a Product");

46

products_invisible(); lblMessage.Text = "Product Updated Successfully"; MultiView1.ActiveViewIndex = -1; } else lblMessage.Text = "Failed to Update Product!"; } protected void cmd_Click(object sender, EventArgs e) { if (fupImage.HasFile) { if (fupImage.PostedFile.ContentType == "image/pjpeg" || fupImage.PostedFile.ContentType == "image/jpeg" || fupImage.PostedFile.ContentType == "image/gif" || fupImage.PostedFile.ContentType == "image/x-png" || fupImage.PostedFile.ContentType == "image/bmp") { string str = fupImage.PostedFile.FileName.ToString(); filename = Path.GetFileName(str); string path = Server.MapPath("~/images/"); fupImage.PostedFile.SaveAs(path + filename); image_url = "~/images/" + filename; imgImage.ImageUrl = image_url; lblImageError.Text = ""; fupImage.Enabled = false; cmd.Enabled = false; rfvImage.Enabled = false; } else lblImageError.Text = "Incorrect File Type"; } else lblImageError.Text = "File Not Selected"; } protected void cmdB_Click(object sender, EventArgs e) { if (fupBImage.HasFile) { if (fupBImage.PostedFile.ContentType == "image/pjpeg" || fupBImage.PostedFile.ContentType == "image/jpeg" || fupBImage.PostedFile.ContentType == "image/gif" || fupBImage.PostedFile.ContentType == "image/x-png" || fupBImage.PostedFile.ContentType == "image/bmp") { string str = fupBImage.PostedFile.FileName.ToString(); Bfilename = Path.GetFileName(str); string path = Server.MapPath("~/images/"); fupBImage.PostedFile.SaveAs(path + Bfilename);

imgBImage.ImageUrl = "~/images/" + Bfilename; lblBImageError.Text = ""; fupBImage.Enabled = false; cmdB.Enabled = false; rfvBImage.Enabled = false; } else

47

lblBImageError.Text = "Incorrect File Type"; } else lblBImageError.Text = "File Not Selected"; } protected void lbtnCEdit_Click(object sender, EventArgs e) { sub_cat_invisible(); MultiView1.ActiveViewIndex = 0; ob = new _functions(); ds = ob.cat_fill(c_id); if (ds != null) { txtCat.Text = ds.Tables[0].Rows[0]["c_name"].ToString(); if (ds.Tables[0].Rows[0]["status"].ToString() == "true") optCTrue.Checked = true; else optCFalse.Checked = true; } else lblMessage.Text = "Failed to edit Category!"; } protected void lbtnSCEdit_Click(object sender, EventArgs e) { products_invisible(); MultiView1.ActiveViewIndex = 1; ob = new _functions(); ds = ob.sub_cat_fill(c_id,sc_id); if (ds != null) { txtSubCat.Text = ds.Tables[0].Rows[0]["sc_name"].ToString(); if (ds.Tables[0].Rows[0]["status"].ToString() == "true") optSCTrue.Checked = true; else optSCFalse.Checked = true; } else lblMessage.Text = "Failed to edit Sub-Category!"; } protected void lbtnPEdit_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 2; rfvImage.Enabled = false; rfvBImage.Enabled = false; ob = new _functions(); ds = ob.prod_fill(c_id, sc_id, p_id); if (ds != null) { txtPname.Text = ds.Tables[0].Rows[0]["p_name"].ToString(); txtPrice.Text = ds.Tables[0].Rows[0]["price"].ToString(); txtFeatures.Text = ds.Tables[0].Rows[0]["features"].ToString(); image_url = ds.Tables[0].Rows[0]["image_url"].ToString(); imgImage.ImageUrl = image_url; Bimage_url = ds.Tables[0].Rows[0]["Bimage_url"].ToString();

48

imgBImage.ImageUrl = Bimage_url; if (ds.Tables[0].Rows[0]["status"].ToString() == "true") optTrue.Checked = true; else optFalse.Checked = true; lblMessage.Text = ""; } else lblMessage.Text = "Failed to edit Product!"; } protected void lbtnCDel_Click(object sender, EventArgs e) { ob = new _functions(); bool success = ob.del_cat(c_id); if (success) { ddlCategories.Items.RemoveAt(ddlCategories.SelectedIndex); cat_invisible(); MultiView1.ActiveViewIndex = -1; lblMessage.Text = "Product Deleted Successfully"; } else { lblMessage.Text = "Failed to Delete Category!
Note : You can delete a Category only if all it's Sub-Categories are deleted."; } } protected void lbtnSCDel_Click(object sender, EventArgs e) { ob = new _functions(); bool success = ob.del_sub_cat(c_id, sc_id); if (success) { ddlSubCat.Items.RemoveAt(ddlSubCat.SelectedIndex); sub_cat_invisible(); MultiView1.ActiveViewIndex = -1; lblMessage.Text = "Product Deleted Successfully"; } else { lblMessage.Text = "Failed to Delete Sub-Category!
Note : You can delete a SubCategory only if all it's Products are deleted."; } } protected void lbtnPDel_Click(object sender, EventArgs e) { ob = new _functions(); bool success = ob.del_prod(c_id, sc_id, p_id); if (success) { ddlProducts.Items.RemoveAt(ddlProducts.SelectedIndex); products_invisible(); MultiView1.ActiveViewIndex = -1; lblMessage.Text = "Product Deleted Successfully"; } else

49

lblMessage.Text = "Failed to Delete Product!"; } protected void cmdCClear_Click(object sender, EventArgs e) { txtCat.Text = ""; optCFalse.Checked = false; optCTrue.Checked = false; } protected void cmdSCClear_Click(object sender, EventArgs e) { txtSubCat.Text = ""; optSCFalse.Checked = false; optSCTrue.Checked = false; } protected void cmdClear_Click(object sender, EventArgs e) { txtPname.Text = ""; txtPrice.Text = ""; txtFeatures.Text = ""; optFalse.Checked = true; imgImage.ImageUrl = ""; fupImage.Enabled = true; cmd.Enabled = true; lblImageError.Text = ""; lblMessage.Text = ""; rfvImage.Enabled = true; imgBImage.ImageUrl = ""; fupBImage.Enabled = true; cmdB.Enabled = true; rfvBImage.Enabled = true; lblBImageError.Text = ""; } void cat_invisible() { ddlSubCat.Enabled = false; ddlProducts.Enabled = false; lbtnCEdit.Visible = false; lbtnCDel.Visible = false; lbtnSCEdit.Visible = false; lbtnSCDel.Visible = false; lbtnPEdit.Visible = false; lbtnPDel.Visible = false; lblMessage.Text = ""; } void sub_cat_invisible() { ddlSubCat.SelectedIndex = 0; ddlProducts.Enabled = false; lbtnSCEdit.Visible = false; lbtnSCDel.Visible = false;

50

lbtnPEdit.Visible = false; lbtnPDel.Visible = false; lblMessage.Text = ""; } void products_invisible() { ddlProducts.SelectedIndex = 0; lbtnPEdit.Visible = false; lbtnPDel.Visible = false; lblMessage.Text = ""; } }

51

page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="aboutus.aspx.cs" Inherits="aboutus" Title="Untitled Page" %>

<strong>Company

PresentBazaar.com aims to be one of the largest Internet retailers of branded computer technology and digital lifestyle products with more than 5000 products from top international and domestic brands.

Our business philosophy is simple: offer consumers and businesses what they want, when they want it.

<strong>Products

We offer our customers over 5000 quality products, and our list of product categories and product offerings is growing every day.PresentBazaar customers know they’re getting the best prices and exclusive offers on a huge range of computer technology products like desktops, notebooks, printers, mobile phones, networking, digital cameras, software, storage and more. Plus, we offer other interesting products such as LCD TVs, MP3 players, gaming and home electronics.

Our direct association with all the major brands means our customers will always find special deals on great products from the biggest names in the industry. And to help our customers choose the right products, we make it easy to find availability, pricing, reviews and ratings.

<strong>Service

At PresentBazaar.com, our focus has always been on helping customers save time and money. This is why we’ve invested in building a website that allows them to securely manage their s without intervention. It’s the empowering, 24/7 self service approach that ensures we keep our customers satisfied, and our prices competitive.





52

Checkout page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="check_out.aspx.cs" Inherits="check_out" Title="Untitled Page" %>

Confirm Order
Please send your payment in the form of Demand Draft, in favour of "Present Bazaar Inc." payable at "Samalkha", to the following address:

Present Bazaar Inc.
Samalkha, District Panipat
Haryana, INDIA
Pin Code : 132101

Your order will reach you within 15 days of realization of payment.
Enter Demand Draft Details :






53







54

us page

<%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="us.aspx.cs" Inherits="us" Title="Untitled Page" %>



55
Us
<pre style="font-size: small"> Providing you with the best customer service and an amazing online shopping experience has always been our goal. You can Us for complaints, or queries via telephone, email or postal mail. by phone: Call at +91-9466423350 to reach our Customer Care team, manned by dedicated personnel, who are empowered to take decisions and resolve your problems. If you are calling from outside Mumbai, call us and ask us to call you back.

by email: Send your emails at [email protected]. We will respond within 2 working days. Do mention your Order Number in the subject line of your email, if you are ing us about an order you have placed. This helps us respond to your query faster. Not receiving our replies? If you are not receiving any replies to your emails: * It's possible our email replies are being blocked by your email program or by your internet service provider (ISP). Many email programs provide protection against spam or bulk mails, but sometimes even legitimate commercial emails, like an email from our customer department or automatic order statusr /> notification emails, can get blocked by mistake. * Check your 'Spam' or 'Bulk' folders for mails from us or your network or internet service provider for advice. * If you are still not receiving our emails, do call us. * Please mention your numbers in your email so that we could also call you up. by postal mail: Present Bazaar Inc. Samalkha, District Panipat Haryana, INDIA Pin Code : 132101


56

page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="forgot_pwd.aspx.cs" Inherits="forgot_pwd" Title="Untitled Page" %>



style="height:20px; font-weight:bold; text-decoration:underline; color:Gray; font-size:25px;"> ?




57






58

TextMode="" rel="nofollow">



using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq;

59

public partial class forgot_pwd : System.Web.UI.Page { eshop_functions eshopf = new eshop_functions(); static DataSet ds; protected void Page_Load(object sender, EventArgs e) { MultiView1.ActiveViewIndex = -1; txtEmailID.Focus(); } protected void imgSubmit_Click(object sender, ImageClickEventArgs e) { ds = eshopf.forgot_(txtEmailID.Text); if (ds.Tables[0].Rows.Count > 0) { MultiView1.ActiveViewIndex = 0; lblSQ.Text = ds.Tables[0].Rows[0]["sq"].ToString(); txtSA.Focus(); lblMessage.Visible = false; } else { lblMessage.Text = "Email-ID doesn't exist. Please Try again!"; lblMessage.Visible = true; txtEmailID.Focus(); } } protected void imgProceed_Click(object sender, ImageClickEventArgs e) { if (ds.Tables[0].Rows[0]["sa"].ToString() == txtSA.Text) { MultiView1.ActiveViewIndex = 1; txtNewPwd.Focus(); lblMessage.Visible = false; } else { lblMessage.Text = "Wrong Security Answer. Please try again!"; lblMessage.Visible = true; txtSA.Focus(); MultiView1.ActiveViewIndex = 0; } } protected void imgUpdate_Click(object sender, ImageClickEventArgs e) { if (eshopf.change_(ds.Tables[0].Rows[0]["uid"].ToString(), txtNewPwd.Text)) { lblMessage.Text = " changes Successfully."; lblMessage.Visible = true; } else { lblMessage.Text = "Unable to change . Please try after some time."; lblMessage.Visible = true; txtNewPwd.Focus(); MultiView1.ActiveViewIndex = 1; }

60

Free delivery page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="free_delivery.aspx.cs" Inherits="free_delivery" Title="Untitled Page" %>

Free Home Delivery f3a65

  • We offer <strong>FREE Home Delivery on all products.
  • It is our endeavour to deliver all items in your Order together; however this may not always be possible due to product characteristics, or availability.
  • Each order will be shipped only to a single shipping address.

<strong>Please e-mail us at [email protected], if you have any questions.



61

My page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="my_acc.aspx.cs" Inherits="my_acc" Title="Untitled Page" %>
My


Order History
View Order History


Change
Change






62
Edit Profile
Edit Profile


63

Order complete page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="order_complete.aspx.cs" Inherits="order_complete" Title="Untitled Page" %>
Order Complete Successfully!


Your order will reach you within 15 days of realization of payment.

If you have any problems regarding the products delivery then please us as given details in the Us Section.



Click the "Shop More" button to continue shopping, 


64

Order details <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="order_details.aspx.cs" Inherits="order_details" Title="Untitled Page" %>

 
       

Demand Draft Bank Name :
Demand Draft Number       :
Demand Draft Date            :
<PagerSettings Mode="NumericFirstLast" />

65

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <EditRowStyle BackColor="#2461BF" />





66


 


67

Order history page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="order_history.aspx.cs" Inherits="order_history" Title="Untitled Page" %>

 
<PagerSettings Mode="NumericFirstLast" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <EditRowStyle BackColor="#2461BF" />
Note: In case of any query regarding the status, please us as given details in the Us Section


68

Products page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="products.aspx.cs" Inherits="products" Title="Untitled Page" %>
You are Here :
<< Previous       Next >>
<< Previous       Next >>




69

Search result page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="Search_Results.aspx.cs" Inherits="Search_Results" Title="Untitled Page" %> <script type="text/javascript" language="javascript"> function Svalidate() { if(document.getElementById("<%=txtS.ClientID%>").value == "") { alert("Please enter some text to search."); document.getElementById("<%=txtS.ClientID%>").focus(); return false; } }



70
Search Results
<< Previous       Next >>
                 
<< Previous       Next >>




71

Sign in page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile=".aspx.cs" Inherits="" Title="Untitled Page" %> <script type="text/javascript" language="javascript"> function validate_() { var EmailID = document.getElementById("<%= txtEmailID.ClientID %>"); var Pwd = document.getElementById("<%= txtPwd.ClientID %>"); return check_data(EmailID,Pwd); } function validate_new_acc() { var EmailID = document.getElementById("<%= txtNUEmailID.ClientID %>"); var Pwd = document.getElementById("<%= txtNUPwd.ClientID %>"); var wd = document.getElementById("<%= txtNUwd.ClientID %>"); if(check_data(EmailID,Pwd) == false) return false; if(Pwd.value!=wd.value) { alert("The s you have entered do not match. Please try again."); wd.focus(); return false; } return true; } function check_data(EmailID,Pwd) { if(EmailID.value=='') { alert("Please enter email"); EmailID.focus(); return false; } if(EmailID.value!='' && isValidEmail(EmailID.value)==false) { return false; } if(Pwd.value=='') { alert("Please enter "); Pwd.focus(); return false; } if(Pwd.value.length<6) { alert(" must be at least six digit long."); Pwd.focus(); return false;

72

} return true; } function isValidEmail(emailid) { var l=emailid.length; if(l==0) { return false; } if(l!=0) { var a=emailid.indexOf('@'); var d=emailid.lastIndexOf('.'); var str1=emailid.substr(0,a); var str2=emailid.substr(a+1,d-a-1); var str3=emailid.substr(d+1,l); var len1=str1.length; var len2=str2.length; var len3=str3.length; if(a<0 ) { alert("Check for missing '@' or '.' "); return false; } else if(d<2) { alert("Check for missing '.' "); return false; } else if (a>d) { alert ("Invalid email. Please enter correct email address"); return false; } if (len1<=1 || len2<=1 || len3 <=1) { alert ("Invalid email. Please enter correct email address"); return false; } } return true; }
/
Not a customer yet?

73

Are you an existing customer?




74
?


75

Create page

using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class : System.Web.UI.Page { eshop_functions eshopf = new eshop_functions(); string uid, msg; protected void Page_Load(object sender, EventArgs e) { txtEmailID.Focus(); if (Request.QueryString.HasKeys()) { msg = Request.QueryString.Get("msg").ToString(); } } protected void imgCreateAcc_Click(object sender, ImageClickEventArgs e) { uid = eshopf.get_uid(txtNUEmailID.Text, txtNUPwd.Text); if (uid == "0") { if (eshopf.insert_(txtNUEmailID.Text, txtNUPwd.Text)) { uid = eshopf.get_uid(txtNUEmailID.Text, txtNUPwd.Text); if (eshopf.update_request_id(Session["request_id"].ToString(), uid) == "false") { lblMessage.Text = " created\nFailed to save cart! Please try after sometime."; } else { Session["uid"] = uid; Session["request_id"] = uid; Session["name"] = txtNUEmailID.Text; if (msg == "checkout") Response.Redirect("ship_info.aspx?msg=checkout"); else Response.Redirect("ship_info.aspx"); } } else

76

lblMessage.Text = "Failed to !
Please try after sometime."; } else lblMessage.Text = "E-Mail ID already exists!
Please try a different one."; lblMessage.Visible = true; } protected void img_Click(object sender, ImageClickEventArgs e) { uid = eshopf.get_uid(txtEmailID.Text, txtPwd.Text); if (uid == "0") lblMessage.Text = "Invalid name or !"; else if (eshopf.update_request_id(Session["request_id"].ToString(), uid) == "false") { lblMessage.Text = "Failed to ! Please try after sometime."; } else { Session["uid"] = uid; Session["request_id"] = uid; string uname = eshopf.get_uname(uid); if (uname != "0") Session["name"] = uname; else Session["name"] = txtEmailID.Text; if (msg == "checkout") Response.Redirect("ship_info.aspx?msg=checkout"); else Response.Redirect("my_acc.aspx"); } lblMessage.Visible = true; } protected void lbtnFPwd_Click(object sender, EventArgs e) { Response.Redirect("forgot_pwd.aspx"); } }

77

and conditions page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="_conditions.aspx.cs" Inherits="_conditions" Title="Untitled Page" %>
   And Conditions

The and Conditions contained herein along form an Agreement regulating our relationship with regard to the use of “PresentBazaar.com” by you.

Please read this Agreement carefully. You are advised to regularly check for any amendments or updates to the and conditions from time to time. PresentBazaar.com may add to or change or update these of Use, from time to time entirely at the its own discretion. You are responsible for checking these of Use periodically to remain in compliance with these . Your use of a Site after any amendment to the of Use shall constitute your acceptance of these and you also agree to be bound by any such changes/revisions.

Any clause of and conditions if deemed invalid, void or for any reason unenforceable, shall be deemed severable and shall not affect the validity and enforceability of the remaining clauses of the and conditions.

<strong>Online Purchases

This Website is only a venue where s may meet and interact with us for their sale and purchase transactions. The commercial / contractual include without limitation price, shipping costs, date, period, mode of delivery, warranties related to products and services including after sales services related to products and services, etc., over which the we have complete control and the same may be subject to change.

The agreement between you and PresentBazaar.com is subject to the following and conditions :-

  1. The certifies that he/she is at least 18 (eighteen) years of age or has the consent of a parent or legal guardian.
  2. These and conditions supersede all previous representations, understandings, or agreements and shall prevail notwithstanding any variance with any other of any order submitted. By using the Shopping services of PresentBazaar.com you agree to be bound by the and Conditions.
  3. All prices, unless indicated otherwise are in Indian Rupees
  4. By indicating ’s acceptance to purchase any product or service offered on the site, is obligated to complete such transactions. s shall prohibit from indicating its acceptance to purchase products and services where it does not intend to complete such transactions.
  5. Any order placed for a product that is listed at an incorrect price may be cancelled. This shall be regardless of whether

    78

    the order has been confirmed and/or payment levied. In the event the payment has been processed, the same shall be credited to your and duly notified to you by email.
  6. In a credit card transaction, you must use your own credit card. PresentBazaar.com will not be liable for any credit card fraud. The liability to use a card fraudulently will be on the and the onus to 'prove otherwise' shall be exclusively on the .
  7. In the event that a non-delivery occurs on of a mistake by you (i.e. wrong name or address) any extra cost towards re-delivery shall be claimed from the placing the order.
  8. Shipment/delivery time of order processing starts from the day of receipt of the payment confirmed against the order placed with PresentBazaar.com. Usually all orders are processed and shipped within 7 working days, once payment is confirmed. However, certain categories of products have different lead-times for delivery due to the nature of the product. Do check the delivery timelines for each product while ordering. PresentBazaar.com shall not be liable for any delay / non-delivery of purchased goods in the event of flood, fire, wars, acts of God or any cause that is beyond the control of PresentBazaar.com.
  9. The agrees to use the services provided by PresentBazaar.com, its s, consultants and contracted companies, for lawful purposes only.
  10. The agrees to provide authentic and true information. PresentBazaar.com reserves the right to confirm and validate the information and other details provided by the at any point of time. If upon confirmation such details are found not to be true (wholly or partly), PresentBazaar.com has the right in its sole discretion to reject the registration and debar the from using the Services available at this website, and / or other d websites without prior intimation whatsoever.


79

View cart page <%@ Page Language="C#" MasterPageFile="~/eshop_master.master" AutoEventWireup="true" CodeFile="view_cart.aspx.cs" Inherits="view_cart" Title="Untitled Page" %>



82
Cart Details

 
         <PagerSettings Mode="NumericFirstLast" />

80

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <EditRowStyle BackColor="#2461BF" />

81





        




83

8.Screen Shots

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

\

99

9.BIBLIOGRAPHY The main books ,which were consulted for the project development, are : 1. Guide to Microsoft Visual Studio– Peter Norton 2. Introduction of Microsoft SQL Server : Aptech 3. MSDN Library 4. Software Engineering – Roger S. Pressman, K. K. Aggarwal 5. Mastering Visual Basic – BPB Publication

100

Related Documents c2h70

Online Shopping Project Report 5w6r44
December 2019 49
Online Shopping Project Report 5w6r44
November 2019 67
Online Shopping Project Report 5w6r44
November 2019 75
Online Shopping Store Project Report 6a705i
December 2019 110
Online Shopping Mall Project Report 1r4j46
October 2019 57
Online Shopping System Project Report 4p143w
November 2019 41

More Documents from "Amit Verma" 68j20

Type Of Adsorption Isotherm 406v1m
November 2019 69
Microbial Metabolism Microbiology Lecture Powerpoint Vmc 653i6p
August 2021 0
Rps---professional-standards-for-hospital-pharmacy.pdf 525527
December 2019 43
Drug-discovery-development.pdf 27p1u
November 2019 53
Online Shopping Project Report 5w6r44
November 2019 75
Need And Importance Of Drug Information Centres In Indian Hospital System-.pdf 2h606p
November 2019 50