《动态网页设计》 2.docx
- 文档编号:7271901
- 上传时间:2023-01-22
- 格式:DOCX
- 页数:14
- 大小:214.25KB
《动态网页设计》 2.docx
《《动态网页设计》 2.docx》由会员分享,可在线阅读,更多相关《《动态网页设计》 2.docx(14页珍藏版)》请在冰豆网上搜索。
《动态网页设计》2
武汉工业学院
---动态网页设计
大作业报告
专业
学号
姓名
日期
实验基于VS2008的登录系统的设计与实现
【实验目的】
通过制作一个登录系统来掌握访问与操纵数据库的方法。
【实验内容】
一、登录系统包括信息:
用户登录注册信息
用户名数据表结构(TableUser)
字段名
说明
数据类型
长度
允许空值
是否主键
ID
id
int
5
否
否
UserName
用户名
char
10
否
是
Password
密码
char
10
否
否
CreatTime
创建时间
Int
10
否
否
我建立的登录注册表如下:
二、电子通信录系统应至少包括下列功能页面(页面布局自定):
1.用户可以进行注册;用户名数据表中如果没有这个用户名可以让用户进行注册。
2.用户使用用户名+密码进行登录,如果是已经在用户名数据表中已经有的用户可以打开一个任意的新页面;不正确的话提示出错等信息。
【设计文档】
按照软件工程思想规范整个系统的开发流程,并反映在设计文档中,主要包括下列步骤:
1.需求分析
我们需要一个登录界面,一个注册界面和一个验证的程序。
2.模块设计
登录界面
Denglujiemian
注册界面
zhucejiemian
3.编码实现
登录界面:
<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="denglujiemian.aspx.cs"Inherits="denglujiemian"%>
DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:
//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
//www.w3.org/1999/xhtml">
1pxsolid#C0C0C0;height: 245px;width: 350px;margin-top: 100px;margin-right: auto;margin-left: auto;"> 用户登录 LabelID="Label1"runat="server"> Label>
用号名:
TextBoxID="TextBox1"runat="server"Height="24px"Width="170px" >
TextBox>
密码:
TextBoxID="TextBox2"runat="server"Height="25px"TextMode="Password" Width="170px">
TextBox>
CheckBoxID="CheckBox1"runat="server"Text="记住密码"/>
ButtonID="Button1"runat="server"Height="32px"Text="登录"Width="69px" onclick="Button1_Click"BackColor="#00CCFF"BorderColor="#FFFFCC"/> ButtonID="Button2"runat="server"Height="30px"Text="注册"Width="69px" BackColor="#00CCFF"onclick="Button2_Click"/>
LinkButtonID="LinkButton1"runat="server">忘记密码
LinkButton>