📄 settings.aspx
字号:
<%@ Page language="c#" Codebehind="Settings.aspx.cs" AutoEventWireup="false" Inherits="Wrox.WebModules.Polls.Web.Settings" %>
<%@ Register TagPrefix="Polls" TagName="AdminHeader" src="AdminHeader.ascx" %>
<%@ Register TagPrefix="Polls" TagName="AdminFooter" src="AdminFooter.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Polls: Settings</title>
<link rel="stylesheet" HREF="/ThePhile/Styles/ThePhile.css" TYPE="text/css" />
<link href="/ThePhile/Styles/Navigator.css" rel="stylesheet" />
<meta content="C#" name="CODE_LANGUAGE">
</HEAD>
<body>
<form method="post" runat="server" ID="Settings">
<!-- Insert the menu user control -->
<Polls:AdminHeader id="Menu" runat="server" />
<asp:table runat="server" CssClass="Grid_General" Width="100%" id="Table1">
<asp:TableRow>
<asp:TableCell Width="150px" Text="Connection string:" />
<asp:TableCell>
<asp:TextBox runat="server" Width="100%" ID="ConnectionString" CssClass="TextBox" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="ConnectionString" Display="dynamic" ID="Requiredfieldvalidator1" NAME="Requiredfieldvalidator1"><br>* This field is required
</asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Text="Lock duration:" />
<asp:TableCell>
<asp:TextBox runat="server" Width="100%" ID="LockDuration" CssClass="TextBox" />
<asp:CompareValidator runat="server" ControlToValidate="LockDuration" Type="Integer" Operator="DataTypeCheck" Display="dynamic" ID="Comparevalidator1"><br>* Invalid format</asp:CompareValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Text="Lock by cookie:" />
<asp:TableCell>
<asp:CheckBox runat="server" ID="LockByCookie" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Text="Lock by IP address:" />
<asp:TableCell>
<asp:CheckBox runat="server" ID="LockByIP" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow VerticalAlign="Bottom" Height="40px">
<asp:TableCell />
<asp:TableCell>
<asp:Button runat="server" Text="Update" ID="Update" CssClass="Button" OnClick="Update_Click"></asp:Button>
</asp:TableCell>
</asp:TableRow>
</asp:table>
<!-- Insert the footer pagelet -->
<Polls:AdminFooter id="Footer" runat="server" />
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -