<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ex3-7.aspx.cs" Inherits="Ex3_7" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ex3-7</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        收货人：<asp:TextBox ID="txtname" runat="server" Width="103px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtname" ErrorMessage="收货人不能为空">*</asp:RequiredFieldValidator>
        <br />
        移动电话：<asp:TextBox ID="txttel" runat="server" Width="178px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txttel" ErrorMessage="移动电话不能为空">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txttel" ErrorMessage="移动电话格式不正确" 
            ValidationExpression="^(1(([35][0-9])|(47)|[8][0126789]))\d{8}$">*</asp:RegularExpressionValidator>
        <br />
        金额：<asp:TextBox ID="txtmoney" runat="server" Width="85px"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="txtmoney" ErrorMessage="金额范围10-50" MaximumValue="50" 
            MinimumValue="10">*</asp:RangeValidator>
        <br />
        <asp:Button ID="Button1" runat="server" Text="确认" />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
            ShowMessageBox="True" ShowSummary="False"/>
    </div>
    </form>
</body>
</html>
