47 lines
2.0 KiB
Plaintext
47 lines
2.0 KiB
Plaintext
![]() |
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_enterkey.aspx.cs" Inherits="FineUI.Examples.basic.login_enterkey" %>
|
|||
|
|
|||
|
<!DOCTYPE html>
|
|||
|
<html>
|
|||
|
<head runat="server">
|
|||
|
<title></title>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<form id="form1" runat="server">
|
|||
|
<f:PageManager ID="PageManager1" runat="server" />
|
|||
|
用户名:admin
|
|||
|
<br />
|
|||
|
密码:admin
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
注意:在表单内按回车键会导航到下一个控件。
|
|||
|
<f:Window ID="Window1" runat="server" Title="登录表单" IsModal="false" EnableClose="false"
|
|||
|
WindowPosition="GoldenSection" Width="350px">
|
|||
|
<Items>
|
|||
|
<f:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" BodyPadding="10px"
|
|||
|
LabelWidth="60px" ShowHeader="false">
|
|||
|
<Items>
|
|||
|
<f:TextBox ID="tbxUserName" Label="用户名" Required="true" runat="server" NextFocusControl="tbxPassword">
|
|||
|
</f:TextBox>
|
|||
|
<f:TextBox ID="tbxPassword" Label="密码" TextMode="Password" Required="true" runat="server" NextFocusControl="btnLogin">
|
|||
|
</f:TextBox>
|
|||
|
</Items>
|
|||
|
</f:SimpleForm>
|
|||
|
</Items>
|
|||
|
<Toolbars>
|
|||
|
<f:Toolbar ID="Toolbar1" runat="server" ToolbarAlign="Right" Position="Bottom">
|
|||
|
<Items>
|
|||
|
<f:Button ID="btnLogin" Text="登录" Type="Button" ValidateForms="SimpleForm1" ValidateTarget="Top"
|
|||
|
runat="server" OnClick="btnLogin_Click">
|
|||
|
</f:Button>
|
|||
|
<f:Button ID="btnReset" Text="重置" Type="Reset" EnablePostBack="false"
|
|||
|
runat="server">
|
|||
|
</f:Button>
|
|||
|
</Items>
|
|||
|
</f:Toolbar>
|
|||
|
</Toolbars>
|
|||
|
</f:Window>
|
|||
|
</form>
|
|||
|
</body>
|
|||
|
</html>
|