欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    网上购物系统的设计与实现源代码.doc

    • 资源ID:28555481       资源大小:397KB        全文页数:59页
    • 资源格式: DOC        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    网上购物系统的设计与实现源代码.doc

    精品文档,仅供学习与交流,如有侵权请联系网站删除cm.aspx(页面)<% Page Language="C#" MasterPageFile="/MasterPage.master" AutoEventWireup="true" CodeFile="cm1.aspx.cs" Inherits="cm1" Title="无标题页" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 地址<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br />邮编<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <br />电话<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <br />真实姓名<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> <br /> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="下一步" style="height: 26px" /> <br /> <br /> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /></asp:Content>cm.aspx.csusing 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 cm1 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) class insert protected void Button1_Click(object sender, EventArgs e) DataTable dtable; string sql = ConfigurationManager.ConnectionStrings"Con".ConnectionString.ToString(); SqlConnection sqlb = new SqlConnection(sql); sqlb.Open(); string strt = "select * from gouwuche where username='" + Session"name".ToString() + "'" SqlDataAdapter sqlt = new SqlDataAdapter(strt, sqlb); DataSet ds = new DataSet(); DataRowCollection drow; sqlt.Fill(ds,"tab"); dtable = ds.Tables"tab" drow = dtable.Rows; Random rnd = new Random(); long n = rnd.Next(10000, 99999); long m = rnd.Next(10000, 99999); long x = rnd.Next(10000, 99999); for (int i = 0; i < drow.Count; i+) SqlCommand com = new SqlCommand(); com.Connection = sqlb; com.CommandText = "insert into dingdan(id,sum,sprice,youbian,name,address,username,pho,sname,time,photo,sno)values(id,sum,sprice,youbian,name,address,username,pho,sname,time,photo,sno)" com.Parameters.AddWithValue("id", n.ToString()+m.ToString()+x.ToString(); com.Parameters.AddWithValue("sum", drowi4.ToString(); com.Parameters.AddWithValue("sprice", drowi3.ToString(); com.Parameters.AddWithValue("youbian", TextBox2.Text.ToString(); com.Parameters.AddWithValue("name", TextBox4.Text.ToString(); com.Parameters.AddWithValue("address", TextBox1.Text.ToString(); com.Parameters.AddWithValue("username", Session"name".ToString(); com.Parameters.AddWithValue("pho", TextBox3.Text.ToString(); com.Parameters.AddWithValue("sname", drowi2.ToString(); com.Parameters.AddWithValue("time", System.DateTime.Now.ToString(); com.Parameters.AddWithValue("photo", drowi5.ToString(); com.Parameters.AddWithValue("sno", drowi0.ToString(); com.ExecuteNonQuery(); DataTable dtable2; string strt2 = "select kucun from shangping where name='" + drowi2.ToString() + "'" SqlDataAdapter sqlf = new SqlDataAdapter(strt2, sqlb); DataSet ds2 = new DataSet(); DataRowCollection drow2; sqlf.Fill(ds, "tab2"); dtable2 = ds.Tables"tab2" drow2 = dtable2.Rows; int a=Int32.Parse(drow200.ToString() - Int32.Parse(drowi4.ToString(); string strt3 = "update shangping set kucun='" + a.ToString() + "' where name='" + drowi2.ToString() + "'" SqlCommand upkc = new SqlCommand(strt3,sqlb); upkc.ExecuteNonQuery(); SqlCommand coms = new SqlCommand(); coms.Connection = sqlb; coms.CommandText = "delete from gouwuche where username=name" coms.Parameters.AddWithValue("name", Session"name".ToString(); coms.ExecuteNonQuery(); sqlb.Close(); Response.Write("<script>alert('恭喜你,订单已生成');</script>"); FenLeishop.aspx<% Page Language="C#" MasterPageFile="/MasterPage.master" AutoEventWireup="true" CodeFile="FenLeishop.aspx.cs" Inherits="FenLeishop" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><link href="StyleSheet.css" rel="stylesheet" type="text/css" /><div id="main"><br/><div id="fenleitop"><div id="fenleileft"><div id="fenleiBT">数码精品</div><br/><div id="fenleishop"> <asp:DataList ID="DataList1" runat="server" Height="259px" Width="485px" RepeatDirection="Horizontal" RepeatColumns="3" HorizontalAlign="Justify" > <ItemTemplate> <table class="style3"> <tr> <td class="style5" style="width: 151px" align="left"> <a href='ShopMessage.aspx?no=<%#DataBinder.Eval(Container.DataItem,"no")%>'target="blank" ><img style="border:none;" alt="商品" src='./image/Products/<%#Eval("photo") %>'/></a></td> </tr> <tr> <td style="width: 151px" align="left"> <span style="color: #ff0033"> 商品名:<%#Eval("name") %></span></td> </tr> <tr> <td style="width: 151px; height: 25px" align="left"> <span style="color: #ff0000"> 价格:<%#Eval("price") %></span></td> </tr> </table> </ItemTemplate> </asp:DataList> </div></div> <div id="fenleiright"> <div id="fenleiBT">服饰精品</div><br/> <div id="fenleishop"> <asp:DataList ID="DataList2" runat="server" Height="259px" Width="485px" RepeatDirection="Horizontal" RepeatColumns="3" HorizontalAlign="Justify" > <ItemTemplate> <table class="style3"> <tr> <td class="style5" style="width: 151px" align="left"> <a href='ShopMessage.aspx?no=<%#DataBinder.Eval(Container.DataItem,"no")%>'target="blank" ><img style="border:none;" alt="商品" src='./image/Products/<%#Eval("photo") %>'/></a></td> </tr> <tr> <td style="width: 151px" align="left"> <span style="color: #ff0033"> 商品名:<%#Eval("name") %></span></td> </tr> <tr> <td style="width: 151px; height: 25px" align="left"> <span style="color: #ff0000"> 价格:<%#Eval("price") %></span></td> </tr> </table> </ItemTemplate> </asp:DataList></div> </div> </div><br/> <div id="fenleitop"> <div id="fenleileft"><div id="fenleiBT">玩具精品</div><br/><div id="fenleishop"> <asp:DataList ID="DataList3" runat="server" Height="259px" Width="485px" RepeatDirection="Horizontal" RepeatColumns="3" HorizontalAlign="Justify" > <ItemTemplate> <table class="style3"> <tr> <td class="style5" style="width: 151px" align="left"> <a href='ShopMessage.aspx?no=<%#DataBinder.Eval(Container.DataItem,"no")%>'target="blank" ><img style="border:none;" alt="商品" src='./image/Products/<%#Eval("photo") %>'/></a></td> </tr> <tr> <td style="width: 151px" align="left"> <span style="color: #ff0033"> 商品名:<%#Eval("name") %></span></td> </tr> <tr> <td style="width: 151px; height: 25px" align="left"> <span style="color: #ff0000"> 价格:<%#Eval("price") %></span></td> </tr> </table> </ItemTemplate> </asp:DataList></div></div> <div id="fenleiright"> <div id="fenleiBT">家居精品</div><br/> <div id="fenleishop"> <asp:DataList ID="DataList4" runat="server" Height="259px" Width="485px" RepeatDirection="Horizontal" RepeatColumns="3" HorizontalAlign="Justify" > <ItemTemplate> <table class="style3"> <tr> <td class="style5" style="width: 151px" align="left"> <a href='ShopMessage.aspx?no=<%#DataBinder.Eval(Container.DataItem,"no")%>'target="blank" ><img style="border:none;" alt="商品" src='./image/Products/<%#Eval("photo") %>'/></a></td> </tr> <tr> <td style="width: 151px" align="left"> <span style="color: #ff0033"> 商品名:<%#Eval("name") %></span></td> </tr> <tr> <td style="width: 151px; height: 25px" align="left"> <span style="color: #ff0000"> 价格:<%#Eval("price") %></span></td> </tr> </table> </ItemTemplate> </asp:DataList></div> </div> </div> </div> </asp:Content>FenLeishop.aspx.csusing System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;public partial class FenLeishop : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) listbind(); void listbind() string sql = ConfigurationManager.ConnectionStrings"con".ConnectionString; DataSet ds = new DataSet(); using (SqlConnection sqlc = new SqlConnection(sql) SqlDataAdapter sqld = new SqlDataAdapter("select * from shangping where style='数码精品' ", sqlc); SqlDataAdapter sqle = new SqlDataAdapter("select * from shangping where style='服饰精品' ", sqlc); SqlDataAdapter sqlf = new SqlDataAdapter("select * from shangping where style='玩具精品' ", sqlc); SqlDataAdapter sqla = new SqlDataAdapter("select * from shangping where style='家居精品' ", sqlc); sqld.Fill(ds, "tbsp"); sqle.Fill(ds, "tbsp1"); sqlf.Fill(ds, "tbsp2"); sqla.Fill(ds, "tbsp3"); DataList1.DataSource = ds.Tables"tbsp".DefaultView; DataList1.DataBind(); DataList2.DataSource = ds.Tables"tbsp1".DefaultView; DataList2.DataBind(); DataList3.DataSource = ds.Tables"tbsp2".DefaultView; DataList3.DataBind(); DataList4.DataSource = ds.Tables"tbsp3".DefaultView; DataList4.DataBind();Hotshop.aspx<% Page Language="C#" MasterPageFile="/MasterPage.master" AutoEventWireup="true" CodeFile="Hotshop.aspx.cs" Inherits="Hotshop" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><div id="main12313"> <br/><br/> <asp:DataList ID="DataList1" runat="server" Height="259px" Width="485px" RepeatDirection="Horizontal" RepeatColumns="4" HorizontalAlign="Justify" > <ItemTemplate> <table class="style3"> <tr> <td class="style5" style="width: 151px" align="left"> <a href='ShopMessage.aspx?no=<%#DataBinder.Eval(Container.DataItem,"no")%>'target="blank" ><img style="border:none;" alt="商品" src='./image/Products/<%#Eval("photo") %>'/></a></td> </tr> <tr> <td style="width: 151px" align="left"> <span style="color: #ff0033"> 商品名:<%#Eval("name") %></span></td> </tr> <tr> <td style="width: 151px; height: 25px" align="left"> <span style="color: #ff0000"> 价格:<%#Eval("price") %></span></td> </tr> </table> </ItemTemplate> </asp:DataList> </div></asp:Content>Hotshop.aspx.csusing System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;public partial class Hotshop : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) listbind(); void listbind() string sql = ConfigurationManager.ConnectionStrings"con".ConnectionString; DataSet ds = new DataSet(); using (SqlConnection sqlc = new SqlConnection(sql) SqlDataAdapter sqld = new SqlDataAdapter("select top 20* from shangping ", sqlc); sqld.Fill(ds, "tbsp"); DataList1.DataSource = ds.Tables"tbsp".DefaultView; DataList1.DataBind();index.aspx<% Page Language="C#" MasterPageFile="/MasterPage.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" Title="耀思娜,欢迎您" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="main" style="text-align:center; height: 1029px;" align="center" > <div id="niu" style="height: 426px; width: 1060px;" align="center"><div id="jin" style="height: 422px; width: 527px; float:left; margin-left: 8px;"><div id="jin1"style="height: 39px; width: 520px; margin-left: 0px;" align="left"><img src="image/123.jpg" /><div> </div> </div><div id="jin2" style="height: 365px; width: 507px; border: 2px dashed #FF6666; margin-left: 0px; margin-right: 7px; margin-top: 8px;"><!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "http:/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http:/www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title><meta http-equiv="imagetoolbar" content="no"><style type="text/css">body #screen span position:absolute;overflow:hidden;border:#FFF solid 1px;background:#FFF;#screen imgposition:absolute;left:-32px;top:-32px;cursor: pointer;#caption, #titlecolor: #FFF;font-family: georgia, 'times new roman', times, veronica, serif;font-size: 1em;text-align: center;#caption b

    注意事项

    本文(网上购物系统的设计与实现源代码.doc)为本站会员(豆****)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开