📄 range.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Range.aspx.cs" Inherits="Range" %>
<!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 runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblNum" runat="server" Height="24px" Style="z-index: 100; left: 16px;
position: absolute; top: 101px" Text="请输入0-100的数字" Width="142px"></asp:Label>
<asp:TextBox ID="txtNum" runat="server" Style="z-index: 101; left: 165px; position: absolute;
top: 100px" Height="20px"></asp:TextBox>
<asp:RangeValidator ID="rvNum" runat="server" ErrorMessage="请输入正确的数字"
Height="24px" Style="z-index: 103; left: 328px; position: absolute; top: 99px" ControlToValidate="txtNum" MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
<asp:Button ID="btnsubmit" runat="server" Style="left: 8px; position: relative; top: 128px"
Text="确认" /></div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -