📄 test1.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test1.aspx.cs" Inherits="backup_test1" %>
<!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 id="content" style="table-layout: auto; left: 10%; vertical-align: middle; top: 2px; text-align: center" >
<table style="width: 302px; height: 283px;">
<tr>
<td align="center" colspan="9" style="height: 14px; text-align: center">
请输入要计算的数据:</td>
</tr>
<tr>
<td colspan="1" style="width: 172px; height: 2px; text-align: center" align="center">
<asp:TextBox ID="TextBoxs1" runat="server" Width="68px"></asp:TextBox></td>
<td colspan="5" style="width: 1445px; height: 2px; text-align: center" align="center">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" >
<asp:ListItem Value="1">加</asp:ListItem>
<asp:ListItem Value="2">减</asp:ListItem>
<asp:ListItem Value="3">乘</asp:ListItem>
<asp:ListItem Value="4">除</asp:ListItem>
</asp:RadioButtonList></td>
<td colspan="1" style="width: 665px; height: 2px; text-align: center" align="center">
<asp:TextBox ID="TextBoxs2" runat="server" Width="75px" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"></asp:TextBox></td>
<td colspan="1" style="width: 165px; height: 2px; text-align: center" align="center">
<asp:Label ID="Labeld" runat="server" Text="="></asp:Label></td>
<td colspan="1" style="height: 2px; text-align: center" align="center">
<asp:Label ID="Labeljg" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="1" style="width: 172px; height: 2px; text-align: center">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxs1"
ErrorMessage="请输入要运算的数字"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxs1"
ErrorMessage="您输入的不是数字" ValidationExpression="\d{0,5}"></asp:RegularExpressionValidator></td>
<td align="center" colspan="5" style="width: 1445px; height: 2px; text-align: center">
</td>
<td align="center" colspan="1" style="width: 665px; height: 2px; text-align: center">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxs2"
ErrorMessage="请输入要运算的数字"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxs2"
ErrorMessage="您输入的不是数字" ValidationExpression="\d{0,5}"></asp:RegularExpressionValidator></td>
<td align="center" colspan="1" style="width: 165px; height: 2px; text-align: center">
</td>
<td align="center" colspan="1" style="height: 2px; text-align: center">
</td>
</tr>
</table></div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -