ExtAspNet 登陆

界面样式

前台页面
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MyWebUI.Login"%>
2  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head id="Head1" runat="server">
5 <title>系统登陆</title>
6
7 <script type="text/javascript">
8
9 // 本页面一定是顶层窗口,不会嵌在IFrame中
10 if (top.window != window) {
11 top.window.location.href ="./default.aspx";
12 }
13
14
15 </script>
16
17 </head>
18 <body>
19 <form id="form1" runat="server">
20 <ext:PageManager ID="PageManager1" runat="server"></ext:PageManager>
21 <ext:Window ID="Window1" runat="server" IsModal="true" Popup="true" EnableClose="false"
22 EnableMaximize="false" WindowPosition="GoldenSection" Icon="Key" Title="系统登陆"
23 Width="350px">
24 <Items>
25 <ext:SimpleForm ID="SimpleForm1" runat="server" LabelWidth="45px" BodyPadding="10px"
26 EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false">
27 <Items>
28 <ext:TextBox ID="tbxUserName" FocusOnPageLoad="true" runat="server" Label="帐号" Required="true"
29 ShowRedStar="true" Text="">
30 </ext:TextBox>
31 <ext:TextBox ID="tbxPassword" TextMode="Password" runat="server" Required="true"
32 ShowRedStar="true" Label="密码" Text="">
33 </ext:TextBox>
34 <ext:Button ID="btnSubmit" Icon="LockOpen" Type="Submit" runat="server" ValidateForms="SimpleForm1"
35 OnClick="btnSubmit_Click" Text="登陆">
36 </ext:Button>
37 </Items>
38 </ext:SimpleForm>
39 </Items>
40 </ext:Window>
41 </form>
42 </body>
43 </html>
原文地址:https://www.cnblogs.com/txsoft/p/1955634.html