ImageVerifierCode 换一换
格式:DOCX , 页数:19 ,大小:306.95KB ,
资源ID:6784239      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/6784239.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(网上商城详细设计说明书.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

网上商城详细设计说明书.docx

1、网上商城详细设计说明书网上商城设计详细说明书姓名: lclboss班级:微机1024 学号:1000005442网上商城设计详细说明书 11.引言 31.1编写目的 31.2 前期工作 31.3编写背景 32.技术概述 42.1 目标 42.2 硬件支持 42.3 软件支持 43.功能需求 43.1 功能块划分 44.具体设计 54.1首页设计 54.2商品详细信息页面设计 84.3 实现商品搜索功能 104.4商城后台管理登录设计 114.5商城后台商城管理页面设计 114.6 建立删除商品信息页面 155.总结 161.引言1.1编写目的通过学习ASP.NET,以及结合教师给的源代码,进一

2、步修改,从而实现网上商城系统1.2 前期工作在编写该需求前,首先是对各大网上销售网站进行了调查,其中包括:网页排版、顾客消费流程、以及管理员的操作,这三大块进行了调查。并总结出了有自己特色的设计思路。1.3编写背景随着Internet国际互联网的发展,越来越多的企业开始建造自己的网站。基于Internet的信息服务,商务服务已经成为现代企业一项不可缺少的内容。很多企业都已不满足于建立一个简单的仅仅能够发布信息的静态网站。现代企业需要的是一个功能强大的,能提供完善的电子商务服务的动态商务网站。本网上商城系统就是根据电子商务和互联网的发展,针对网上顾客所开发的网络购物系统,本商城系统主要有:1)用

3、户浏览、注册、登录与购买商品;2)商品的入库资料登记;3)商城访问者的在线留言、查看留言,管理员的在线管理留言等;4)商城最新的新闻显示,历史新闻的分页显示,新闻详细情况的显示,后台管理员添加、删除、修改新闻等。本数据采用access作为数据库,亦可以使用SQL作为数据库,项目的重点是商品的添加、删除、显示与修改,需要克服的难点是商品图片的上传和删除。2.技术概述2.1 目标我们使用C#以及数据库技术构建网站,争取将本网站做成一个界面友好、用户购物方便、管理员管理方便的购物系统。2.2 硬件支持 Cpu: 弄个四核最好 比如老一代core Q84002.3 软件支持 操作系统:Windows

4、xp/vista/seven均可,C#开发环境。3.功能需求3.1 功能块划分 1)用户浏览、注册、登录与购买商品;2)商品的入库资料登记;3)商城访问者的在线留言、查看留言,管理员的在线管理留言等;4)商城最新的新闻显示,历史新闻的分页显示,新闻详细情况的显示,后台管理员添加、删除、修改新闻等。4.具体设计4.1首页设计新建web窗体default.aspx,其代码为: .style23 width: 116px; height: 94px; .style24 width: 600px; height: 132px; .style25 width: 104px; .style26 width

5、: 598px; .style27 width: 106px; 热点促销 更多>>> a href=newsshow.aspx?id= target=_blank 最新产品   a href=show.aspx?id= altimg src=images/ class=style23 style=border-style: none /  asp:Label ID=titleLabel runat=server Text= /  asp:Label ID=priceLabel runat=server Text= / 接着,切换到程序文件.cs编

6、辑栏里,写入代码:using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) string strSQL = select top 7 * from news order by id desc; Repeater1.Dat

7、aSource =DbManager.ExecuteQuery(strSQL); Repeater1.DataBind(); 4.2商品详细信息页面设计新建show.aspx,配置好各项值以后,载入代码: .style3 width: 100%; .style4 text-align: center; width: 253px; 售价: 购买数量:1 接着建立.cs程序文件,编辑写入以下代码:using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI

8、.WebControls;using System.Data;public partial class show : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) string sql = select * from product where bh= + Request.QueryStringid; DataTable dt= DbManager.ExecuteQuery(sql); Image1.ImageUrl =images/+dt.Rows0pic.ToString(); txtTitl

9、e.Text = dt.Rows0productName.ToString(); txtContents.Text = dt.Rows0contents.ToString(); txtPrice.Text = dt.Rows0price.ToString(); protected void ImageButton1_Click(object sender, ImageClickEventArgs e) Response.Redirect(buy.aspx?id= + Request.QueryStringid + &num= + Convert.ToInt32(num.Text); 4.3 实

10、现商品搜索功能新建search.aspx,配置相关参数,载入以下代码: 查询结果 a href=show.aspx?id= target=_blank 然后编辑.cs文件using 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.WebPa

11、rts;using System.Web.UI.HtmlControls;public partial class search : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) string strSQL = select * from product where productName like % + Server.UrlDecode(Request.QueryStringtxtSearchName) + %; DataTable dt = DbManager.ExecuteQuery(st

12、rSQL); Repeater1.DataSource = dt; Repeater1.DataBind(); 4.4商城后台管理登录设计新建一个login.aspx,添加所需要的元件,在.cs程序文件中编写ImageButton的事件代码:using System;public partial class login : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) Sessionpass = 0; protected void Button1_Click(object sender, Even

13、tArgs e) if (TextBox3.Text != Request.CookiesCheckCode.Value.ToString() Response.Write(alert(验证码错误!); else string strSQL = select * from users where userName= + TextBox1.Text + and pwd= + TextBox2.Text + ; if (DbManager.ExecuteQuery(strSQL).Rows.Count 0) Sessionpass = 1; Response.Redirect(manageProd

14、uct.aspx); else Response.Write(alert(用户名或密码错误!); 4.5商城后台商城管理页面设计新建.aspx文件,添加好所需控件元件以后,载入源代码: a href=showpro.aspx?id= img src=images/ class=style23 style=border-style: none height=80 width=111 / asp:Label ID=titleLabel runat=server Text= / 单价:asp:Label ID=priceLabel runat=server Text= / 元 a href=upda

15、tepro.aspx?id= target=_blank修改 a href=delpro.aspx?id= target=_blank删除 首页 上一页 下一页 末页 第 页 然后编辑.cs程序文件,其代码为:using System;public partial class fenyepro : System.Web.UI.UserControl protected void Page_Load(object sender, EventArgs e) int iPageSize = 9; /每页几条 string strTableName = product; /要显示的数据表 string

16、 strKey = bh; /说明数据表的关键字段 string strOrder = desc; /按关键字段升序asc,降序desc排列 string strFields = *; /要显示的字段,用*表示或用英文逗号分隔开如产品名称,单价,单位数量 int iCurPage; int iMaxPage = 1; string sql = ; string sqlstr = select count(*) from + strTableName; if (Request.QueryStringpage != ) iCurPage = Convert.ToInt32(Request.QueryStringpage); else iCurPage = 1; int intTotalRec = Convert.ToInt32(DbManager.ExecuteScalar(sqlstr);/求总记录数 if (intTotal

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1