物联网工程实践 下载本文

内容发布更新时间 : 2024/5/21 18:54:14星期一 下面是文章的全部内容请认真阅读。

学号:20114936

黑龙江大学实验报告

物联网信息工程实践

院系:计算机科学技术学院 专业:物 联 网 工 程 姓名:石 乾 坤 指导教师: 玄 萍

黑龙江大学

2014年06月

一、登陆页面 1.前台关键代码

Form、表格、input控件、button控件

 

    账户 :

            

            


      

CSS样式:

内部CSS样式、内联式CSS样式、Class选择器或id选择器

style type=\ body{

background-image:url(\;

background-repeat:no-repeat; background-position:center; }

.auto-style1 { height: 282px; }

.auto-style4 { width: 100%; height: 546px; }

.新建样式1 {

background-image: url('img/03.gif'); }

.auto-style6 {

background-image: url('img/03.gif'); height: 228px; width: 278px; }

.auto-style7 { height: 236px; width: 278px; }

.auto-style8 { height: 282px; width: 278px; }

.auto-style9 { height: 236px; width: 183px; }

.auto-style11 { height: 282px; width: 183px; }

.auto-style12 { height: 228px; width: 183px; }

.auto-style13 { height: 228px; } }

#Password1 {

height: 15px; width: 75px; } #Text1 {

height: 14px; width: 75px; }

2.后台关键代码

模拟登陆验证

protected void Button1_Click(object sender, EventArgs e) {

if (Page.IsValid) {

string username=Text1.Value; string psw=Password1.Value;

if ((username == \) && (psw == \)) {

Response.Redirect(\主页.aspx\); } else {

Label1.Text = \密码错误!\; } } else {

}

}

3.测试结果

二、注册页面 1.前台关键代码

Form、表格、input控件、验证控件、CSS样式