⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.aspx

📁 一个 用Ajax实现聊天室的简单例子 不全的地方指点
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>用户登录页面</title>
    <link href="css/style.css" type="text/css" rel="Stylesheet" />
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
  <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
     <table width="766" height="733" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
	<tr>
		<td colspan="2" style="height: 314px">
			<img src="images/index_01.jpg" width="766" height="314" alt=""></td>
	</tr>
	<tr>
		<td>
		<img src="images/index_02.jpg" width="517" height="181" alt="">
		</td>
		<td  background="images/Login1.jpg" width="249" height="181" valign="top"><br/><br/>
		
		
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="div1" runat="server">	
      <asp:UpdateProgress ID="UpdateProgress1" runat="server">
      <ProgressTemplate><span style="color:Blue">&nbsp; &nbsp;&nbsp; &nbsp;正在加载数据,请稍候...</span></ProgressTemplate>
      </asp:UpdateProgress>
	<div style="text-align:center; font-size:10pt">
	   用户名:<asp:TextBox ID="txtUserName" runat="server" CssClass="inputCss" Width="145px"></asp:TextBox></div>              
	<div style="text-align:center; font-size:10pt">
              &nbsp;密 码:<asp:TextBox ID="txtPass" runat="server"  CssClass="inputCss" Width="146px" TextMode="Password"></asp:TextBox></div>
    <div style="height:20px; padding-top:9px">
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="imgBtnLogin" ImageUrl="images/login.jpg" runat="server" OnClick="imgBtnLogin_Click" />
    &nbsp;&nbsp;<asp:ImageButton ID="imgBtnRegister" ImageUrl="images/register.jpg" runat="server" OnClick="imgBtnRegister_Click" />
    </div>
</div>
 <div id="div2" runat="server"  style="display:none" >
	
	<div style="font-weight:bold;color:red">&nbsp; &nbsp; &nbsp; &nbsp;欢迎进入新语聊天系统 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="Login.aspx"><font color="red">离开</font></a></div>	
	<div style="font-size:10pt; color:red">&nbsp; &nbsp; &nbsp; &nbsp;<asp:Label ID="lblName" runat="server"></asp:Label></div>
    <div style="height:20px; padding-top:9px">
    &nbsp; &nbsp; &nbsp; &nbsp;
        <asp:ImageButton ID="imgBtnManage" ImageUrl="images/gomanage.jpg" runat="server" OnClick="imgBtnManage_Click" Visible="False" />
        <asp:ImageButton ID="imgBtnChat" ImageUrl="images/gochat.jpg" runat="server" OnClick="imgBtnChat_Click" />
        </div>
</div> 
</ContentTemplate>
</asp:UpdatePanel>


</td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/index_04.jpg" width="766" height="238" alt="">
		</td>
	</tr>
</table>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -