毕业设计源代码Word文件下载.docx
《毕业设计源代码Word文件下载.docx》由会员分享,可在线阅读,更多相关《毕业设计源代码Word文件下载.docx(36页珍藏版)》请在冰豆网上搜索。
%@PageLanguage="
C#"
AutoEventWireup="
true"
CodeBehind="
Login.aspx.cs"
Inherits="
Web.Login"
%>
!
DOCTYPEhtmlPUBLIC"
-//W3C//DTDXHTML1.0Transitional//EN"
"
http:
//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
htmlxmlns="
//www.w3.org/1999/xhtml"
headid="
Head1"
runat="
server"
<
title>
租房网站信用评价系统<
/title>
scripttype="
text/javascript"
functionCheckNull(){
if(document.getElementById("
%=txtAccount.ClientID%>
"
).value=="
){
alert("
请输入账号!
);
returnfalse;
}
%=txtPassword.ClientID%>
请输入密码!
functionbtnReg_Click()
{
window.location.href="
Reg.aspx"
;
/script>
/head>
body>
formid="
form1"
divid="
div1"
style="
height:
50px;
/div>
divstyle="
width:
1002px;
margin:
0auto;
height:
580px;
background-image:
url(/images/bgLogin.jpg);
background-repeat:
no-repeat;
text-align:
left;
padding-top:
250px;
padding-left:
620px;
font-size:
12px;
账&
nbsp;
&
号:
asp:
TextBoxID="
txtAccount"
Width="
150"
Height="
20"
/asp:
TextBox>
40px;
密&
码:
txtPassword"
TextMode="
Password"
padding-left:
ImageButtonID="
btnLogin"
ImageUrl="
/images/btnLogin.jpg"
OnClick="
btnLogin_Click"
OnClientClick="
returnCheckNull()"
/>
imgsrc="
/Images/btnReg.jpg"
alt="
onclick="
btnReg_Click()"
cursor:
pointer;
/form>
/body>
/html>
2.用户注册模块代码
用户注册模块部分代码如下。
Theme="
Default"
MasterPageFile="
~/MasterPage/Default.master"
Reg.aspx.cs"
Web.Reg"
ContentID="
ContentHeader"
ContentPlaceHolderID="
HeaderScript"
functionCheckNull()
)
{
帐号不能为空!
document.getElementById("
).focus();
}
密码不能为空!
document.getElementById("
if(document.getElementById("
%=txtTruePassword.ClientID%>
确认密码不能为空!
).value!
=document.getElementById("
).value)
确认密码不正确!
functionCheckAccount(){
账号不能为空!
else{
url="
varaccount=document.getElementById("
).value;
url=encodeURI("
SyncCheck.aspx?
TableName=UserInfo&
Account="
+account+"
result=syncEvent(url);
if(result=="
){
账号不能重复!
functionsyncEvent(url)
varResult="
xmlHttp=newActiveXObject("
Microsoft.XMLHTTP"
xmlHttp.open("
POST"
url,false);
xmlHttp.setRequestHeader("
Content-Type"
"
application/x-www-form-urlencoded"
xmlHttp.send("
Result=xmlHttp.responseText;
returnResult;
functionbtnReset_Click()
Login.aspx"
Content>
Content1"
ContentPlaceHolder_Bar"
管理首页&
gt;
用户信息维护
Content"
ContentPlaceHolder_Content"
10px;
tablecellspacing="
0"
cellpadding="
width="
100%"
border="
line-height:
tr>
tdheight="
25"
30%"
align="
right"
账号:
/td>
*"
left"
200px"
onblur="
returnCheckAccount();
/tr>
密码:
确认密码:
txtTru