电子商务应用开发技术课程设计论文模板Word格式文档下载.docx

上传人:b****3 文档编号:16757033 上传时间:2022-11-25 格式:DOCX 页数:21 大小:2.44MB
下载 相关 举报
电子商务应用开发技术课程设计论文模板Word格式文档下载.docx_第1页
第1页 / 共21页
电子商务应用开发技术课程设计论文模板Word格式文档下载.docx_第2页
第2页 / 共21页
电子商务应用开发技术课程设计论文模板Word格式文档下载.docx_第3页
第3页 / 共21页
电子商务应用开发技术课程设计论文模板Word格式文档下载.docx_第4页
第4页 / 共21页
电子商务应用开发技术课程设计论文模板Word格式文档下载.docx_第5页
第5页 / 共21页
点击查看更多>>
下载资源
资源描述

电子商务应用开发技术课程设计论文模板Word格式文档下载.docx

《电子商务应用开发技术课程设计论文模板Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《电子商务应用开发技术课程设计论文模板Word格式文档下载.docx(21页珍藏版)》请在冰豆网上搜索。

电子商务应用开发技术课程设计论文模板Word格式文档下载.docx

功能名称

功能详细说明

1

登录

根据用户输入的用户名和密码从数据库中的用户表中检索是否存在此用户,如果存在则进入主页,如果不存在,则登录失败。

2

快速注册

注册账号,将用户填写的用户资料存入到数据库中的用户表中,注册成功后跳转到主页

3

分类浏览商品

按照用户选择从数据库中的T_product表中分类查找并显示。

4

商品详细信息

将用户选择的产品的相关资料从T_product表中查询出来,查看某一个商品的详细信息。

5

购买

选中商品放入购物车,最终结算清单

五.数据库设计

E-R图

数据库表清单:

表名

表说明

T_users

用于存储用户资料

T_cat

用于存储商品种类信息

T_product

用于存储商品详细资料

六.成果展示

(1)登录页面

(1)注册页面

主要代码

usingSystem;

usingSystem.Collections;

usingSystem.Configuration;

usingSystem.Data;

usingSystem.Linq;

usingSystem.Web;

usingSystem.Web.Security;

usingSystem.Web.UI;

usingSystem.Web.UI.HtmlControls;

usingSystem.Web.UI.WebControls;

usingSystem.Web.UI.WebControls.WebParts;

usingSystem.Xml.Linq;

usingSystem.Data.SqlClient;

namespaceWebApplication3

{

publicpartialclass_Default:

System.Web.UI.Page

{

protectedvoidPage_Load(objectsender,EventArgse)

}

protectedvoidLinkButton1_Click(objectsender,EventArgse)

Panel1.Visible=false;

Panel2.Visible=true;

protectedvoidButton2_Click(objectsender,EventArgse)

SqlConnectionconn=newSqlConnection();

conn.ConnectionString=@"

DataSource=.\SQLEXPRESS;

AttachDbFilename=|DataDirectory|\Database1.mdf;

IntegratedSecurity=True;

UserInstance=True"

;

conn.Open();

SqlCommandcmd=newSqlCommand();

cmd.Connection=conn;

cmd.CommandText="

Select*FromT_usersWhereusername='

"

+TextBox3.Text+"

'

if(cmd.ExecuteScalar()!

=null)

Label2.Text="

该用户已被使用!

else

InsertIntoT_users(username,password)Values('

'

+TextBox4.Text+"

)"

cmd.ExecuteNonQuery();

Session["

username"

]=TextBox3.Text;

ArrayListcart=newArrayList();

cart"

]=cart;

Response.Redirect("

2.aspx"

);

conn.Dispose();

cmd.Dispose();

protectedvoidButton1_Click(objectsender,EventArgse)

Select*FromT_usersWhereusername='

+TextBox1.Text+"

ANDpassword='

+TextBox2.Text+"

"

]=TextBox1.Text;

Response.Write("

登录失败!

}

(3)首页

(4)商品种类页面

publicpartialclass_41:

SqlCommandcmd=conn.CreateCommand();

select*fromT_cat"

SqlDataReaderdr=cmd.ExecuteReader();

<

tableborder='

1'

Height='

250px'

Width='

500px'

>

tr>

td>

商品种类名称<

/td>

商品种类描述<

/tr>

while(dr.Read())

ahref='

4.aspx?

catid="

+dr[0]+"

+dr[1]+"

/a>

+dr[2]+"

/table>

dr.Dispose();

(5)以生日礼物为例,点击进入生日礼物页面

publicpartialclass_1:

select*fromT_productwherecatid='

+Request.QueryString["

catid"

]+"

for(inti=0;

i<

dr.FieldCount-1;

i++)

+dr[i]+"

5.aspx?

id="

imgsrc='

+dr["

pic"

width='

100'

\a>

(6)查看牛奋斗玩偶公仔的详细信息

(7)输入购买量,确认购买

publicpartialclass_9:

select*fromT_productwhereid='

id"

while(dr.Read())

商品名称:

+dr[1]+"

br/>

商品价格:

+dr[4]+"

商品详细介绍:

+dr[3]+"

3.aspx"

protectedvoidLinkButton2_Click(objectsender,EventArgse)

dr.Read();

ArrayListarr1=(ArrayList)Session["

];

if(arr1!

=null)

arr1.Add(newClass1(Convert.ToInt32(dr["

]),Convert.ToInt32(TextBox1.Text)));

购买成功!

6.aspx'

查看购物车<

]=arr1;

1.aspx'

请先登录再购买<

(8)查看购物车,确认付款

publicpartialclass_10:

inttotal=0;

您的购物车中有以下商品:

商品名称<

商品价格<

商品数量<

foreach(Class1pinarr1)

+p.id+"

total=total+Convert.ToInt32(dr["

price"

])*p.amount;

+p.amount+"

tdcolspan=4align=center>

总计:

+total+"

元<

15.aspx"

(9)确认运输及付款方式

(10)购买成功

(11)会员中心

usingSystem.Web.UI.WebContro

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销 > 企业管理

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

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