asp期末网站设计说明.docx
- 文档编号:16117563
- 上传时间:2023-07-10
- 格式:DOCX
- 页数:25
- 大小:144.12KB
asp期末网站设计说明.docx
《asp期末网站设计说明.docx》由会员分享,可在线阅读,更多相关《asp期末网站设计说明.docx(25页珍藏版)》请在冰点文库上搜索。
asp期末网站设计说明
《》期末设计报告
学生:
班级:
学号:
1、设计目的
我国是一个旅游资源大国,地大物博,文化传统源远流长,在过去的20年,中国已经从旅游资源大国发展成为亚洲旅游大国,今后20年,中国将成为世界旅游强国。
根据世界旅游组织预测,到2020年,我国将成为世界最大的旅游目的地,并成为世界第四大旅游客源国,届时,中国每年接待的入境旅游者将达到1.37亿,每年也将有1亿的中国旅游者将出境、出国旅游。
近年来,随着网络技术的迅猛发展,越来越多的部门、企事业单位都有通过Internet对外宣传自己,同时为那些有信息需求的人提供方便快捷的服务。
旅游是各旅游胜地对外宣传中不可缺少的工具,它的容对于旅游胜地的宣传和旅游地的项目的开发的决策起着非常重要的作用。
旅游网的成立标志着我国基于互联网的旅游网络发展的开始。
随着电子商务的潮起潮落,旅游也经历了市场的洗礼。
旅游作为网络经济形势下旅游业发展的一种战略武器,已对我国旅游市场的固有壁垒带来冲击,我国旅游电子商务在未来的发展中尚有许多工作要做。
旅游电子商务像一大网,把众多的旅游供应商、旅游中介、旅游者联系在一起。
相对于传统的旅游业来说,旅游电子商务不仅提高了业务透明度和工作效率,降低了边际成本,而且凸现了旅游产品本身个性化、信息化、时令化等特性。
2、开发环境
开发所需程序MicrosoftVisualStudio2008以及SQLServerManagementStudioExpress,MicrosoftVisualStudio2008是面向WindowsVista、Office2007、Web2.0的下一代开发工具,代号“Orcas”,是对VisualStudio2005一次及时、全面的升级。
VS2008引入了250多个新特性,整合了对象、关系型数据、XML的访问方式,语言更加简洁。
使用VisualStudio2008可以高效开发Windows应用。
设计器中可以实时反映变更,XAML中智能感知功能可以提高开发效率。
同时VisualStudio2008支持项目模板、调试器和部署程序。
VisualStudio2008可以高效开发Web应用,集成了AJAX1.0,包含AJAX项目模板,它还可以高效开发Office应用和Mobile应用。
将MicrosoftVisualStudio2008、SQLServerManagementStudioExpress两个主要支持软件顺利地安装在Microsoft Windows 2003以上操作系统的PC机上。
能够配置MicrosoftVisualStudio2008开发环境,并且能够创建一个ASP.NET应用程序。
确保程序的开发环境能够运行所需要的程序。
能够在目标PC开发机上安装好所需的软件,配置好环境,并能够创建ASP.NET应用程序。
3、同类现状
近年来被旅游界普遍看好的同程网在旅游电子商务B2B市场小试牛刀。
据CR尼尔森报告显示,2014年末,同程旅游网的Alexa流量排名已经超过艺龙,在国同类中,排名第三,仅次于携程和搜狐旅游,同程网与行业霸主携程的距离正变得越来越小。
同程网从B2B切入旅游电子商务市场,又以真金换取游客的真实体验的方式进入B2C市场,目前已成为中国最大的集B2B与B2C为一体的旅游电子商务。
中国现有7000家以上的旅行社,但90%是中小型企业,他们还在延续着传统的经营模式,效率低下,成本高昂。
同程旅游网的成功以及中国旅游B2B市场的现状对携程网、e龙网以及新浪、搜狐等门户有着深刻的启示。
他们完全可以利用自己在预定或者信息搜索方面的优势,进入旅游电子商务B2B市场这片蓝海。
使自身的服务更加完善,以此来增强客户黏性。
进入B2B领域使这些摆脱了单一的依靠预订或者短信、广告的单一盈利模式,有利于增强企业的抗风险能力。
4、分析与主要功能模块
(1)用户注册登入页面的主要功能:
1.用户注册协议页面
包含用户注册时所要注意的条款
2.用户注册页面
用户填入自己注册的基本信息,注册用户账号
3.用户登入页面
用户注册完,输入自己的账号,登入用户界面
(2)用户界面包括了用户所需要的主要功能:
1.景点介绍
点击进入景点门户页面,里面对景点进行了地区性的细分,包含各个景区的简介和一些相关的信息。
2.图片浏览
综合了各个景点的图片,使用了解各个景点的风景。
3.视频欣赏
有以及有些地区的旅游宣传视频
4.关于我们
包含作者的基本简介以及联系方式
5.票价查询
用户能够通过此页面查询到各个景点的票价信息。
(3)后台界面包括了管理员需要的主要功能:
1.管理登入界面
访问者输入管理员和密码来登录,然后单击“登录”按钮。
输入的数据提交后与数据库中的管理员表进行匹配。
2、管理员上传文件
管理员可以通过此页面上传景点相关文件。
3管理员编辑删除页面
管理员可以通过此页面对数据库中的容进行删除编辑。
5、数据库设计(提供具体的表结构)
数据库账户:
sa密码:
123456
数据库名称:
110
主要表结构:
注册表
影片
管理员
票价
反馈
景区
图像
千岛湖
雁荡山
西湖
楠溪江
四明山
6、设计实现(提供主要的实现代码)
注册页面
Stringstr="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(str);
mycon.Open();
//Response.Write(mycon.State);
Stringa1=TextBox1.Text;
Stringa2=TextBox2.Text;
Stringinsertstr="insertinto注册表(用户名,密码)values('"+a1+"','"+a2+"')";
SqlCommandmycom=newSqlCommand(insertstr,mycon);
intabc=mycom.ExecuteNonQuery();
if(abc!
=0)
{
Response.Write("
}
else
{
Response.Write("
}
账号登陆
Stringusername=TextBox1.Text;
Stringpwd=TextBox2.Text;
Stringconnstr="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(connstr);
mycon.Open();
//Response.Write(mycon.State);
Stringselectstr="select*from注册表where用户名='"+username+"'";
SqlCommandmycom=newSqlCommand(selectstr,mycon);
SqlDataReaderdr=mycom.ExecuteReader();
if(dr.HasRows)
{
while(dr.Read())
{
if(dr["密码"].ToString()==pwd)
{
Response.Write("用户:
"+dr["用户名"].ToString()+"登录成功");
Response.Redirect("主页面.aspx");
}
else
{
Response.Write("登录失败,密码错误");
}
}
}
else
{
Response.Write("登录失败,用户不存在");
反馈页面
protectedvoidButton1_Click(objectsender,EventArgse)
{
Stringstr="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(str);
mycon.Open();
//Response.Write(mycon.State);
Stringa1=TextBox2.Text;
Stringa2=TextBox3.Text;
Stringinsertstr="insertinto反馈表(用户名,反馈)values('"+a1+"','"+a2+"')";
SqlCommandmycom=newSqlCommand(insertstr,mycon);
intabc=mycom.ExecuteNonQuery();
if(abc!
=0)
{
Response.Write("
}
else
{
Response.Write("
}
}
protectedvoidButton2_Click(objectsender,EventArgse)
{
Response.Redirect("主页面.aspx");
}
票价查询网页
Stringa1=TextBox1.Text;
Stringconnstr="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(connstr);
mycon.Open();
SqlDataAdapterda=newSqlDataAdapter("select*from票价where景区='"+a1+"'",mycon);
DataSetds=newDataSet();
da.Fill(ds,"users");
DataTablemytable=ds.Tables["users"];
Response.Write("
Response.Write("
for(inti=0;i { Response.Write(" Response.Write(mytable.Columns[i].ColumnName); Response.Write(""); ");
}
Response.Write("
for(inti=0;i {DataRowmyrow=mytable.Rows[i]; Response.Write(" for(intj=0;j {Response.Write(" Response.Write(myrow[j]); Response.Write(" } Response.Write(""); ");"); ");
}
Response.Write("");
景点门户网页代码
protectedvoidButton1_Click1(objectsender,EventArgse)
{
Response.Redirect("主页面.aspx");
}
protectedvoidButton2_Click(objectsender,EventArgse)
{
Response.Redirect("景点基本信息总览.aspx");
}
protectedvoidDropDownList11_SelectedIndexChanged(objectsender,EventArgse)
{
Stringa1=DropDownList11.Text;
Response.Redirect("Default"+a1+".aspx");
}
protectedvoidDropDownList10_SelectedIndexChanged(objectsender,EventArgse)
{
Stringa2=DropDownList10.Text;
Response.Redirect("Default"+a2+".aspx");
}
}
图代码片欣赏
DatalistID="Datalist1"runat="server"DataKeyField="编号"RepeatDirection="Horizontal"Height="93px"Width="558px"style="margin-left: 221px;margin-top: 0px"OnSelectedIndexChanged="Datalist1_SelectedIndexChanged"> ImageID="Image1"runat="server"ImageUrl='<%#Eval("图像")%>'Height="20cm"Width="20cm"ImageAlign="Right"/>
Datalist>
文件上传页面代码
stringa1=TextBox1.Text;
stringname=FileUpload1.FileName;
Stringname1=".\容\"+name;
stringipath=Server.MapPath("容")+"\\"+name;
FileUpload1.SaveAs(ipath);
stringstrcon="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(strcon);
mycon.Open();
stringinsertstr="Insertinto"+a1+"(标题,容)values('"+a1+"','"+name1+"')";
SqlCommandmycomm=newSqlCommand(insertstr,mycon);
intdel=mycomm.ExecuteNonQuery();
if(del!
=0)
{
Response.Write("
')");
}
else
{
Response.Write("
')");
}
mycon.Close();
管理员登入页面
Stringusername=TextBox1.Text;
Stringpwd=TextBox2.Text;
Stringconnstr="server=PC-20130904GGZT;uid=sa;pwd=123456;database=110";
SqlConnectionmycon=newSqlConnection(connstr);
mycon.Open();
//Response.Write(mycon.State);
Stringselectstr="select*from管理员where='"+username+"'";
SqlCommandmycom=newSqlCommand(selectstr,mycon);
SqlDataReaderdr=mycom.ExecuteReader();
if(dr.HasRows)
{
while(dr.Read())
{
if(dr["密码"].ToString()==pwd)
{
Response.Write("用户:
"+dr[""].ToString()+"登录成功");
Response.Redirect("文件上传.aspx");
}
else
{
Response.Write("登录失败,密码错误");
}
}
}
else
{
Response.Write("登录失败,用户不存在");
}
视频播放页面代码
22d6f312-b0f6-11d0-94ab-0080c74c7e95id=MediaPlayer> //activex.microsoft./activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701flename=mpsrc=<%=DropDownList1.Text%>width=356height=320> 协议框架容 453px;width: 1061px;margin-right: 202px"> 自动打开代码 Response.Redirect(GridView1.Rows[0].Cells[0].Text.ToString()); 幻灯图代码 PanelID="Panel5"runat="server"style="z-index: 1;left: 18px;top: 210px;position: absolute;height: 360px;width: 516px;margin-right: 0;"> DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN"".w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> *{margin: 0;padding: 0;} body{background: #FFF;color: #333;font: 12px/1.6emHelvetica,Arial,sans-serif;} h1,h2,h3,h4,h5,h6{font-size: 1em;} a{color: #0287CA;text-decoration: none;} a: hover{text-decoration: underline;} ul,li{list-style: none;} fieldset,img{border: none;} legend{display: none;} em,strong,cite,th{font-style: normal;font-weight: normal;} input,textarea,select,button{font: 12pxHelvetica,Arial,sans-serif;} table{border-collapse: collapse;} html{overflow: -moz-scrollbars-vertical;} #ibanner{position: relative;width: 618px;height: 360px;overflow: hidden;margin: 5px020px0px;} #ibanner_pic{} #ibanner_pica{position: absolute;top: 0;display: block;width: 960px;height: 618px;overflow: hidden;} #ibanner_btn{position: absolute;z-index: 9999;right: 5px;bottom: 5px;font-weight: 700;font-family: Arial;} #ibanner_btnspan{display: block;float: left;margin-left: 4px;padding: 05px;background: #000;cursor: pointer;} #ibanner_btn.normal{height: 20px;margin-top: 8px;border: 1pxsolid#999;color: #999;font-size: 16px;line-height: 20px;} #ibanner_btn.current{height: 28px;border: 1pxsolid#FF5300;color: #FF5300;font-size: 28px;line-heigh
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- asp 期末 网站 设计 说明