<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="numberbox.aspx.cs" Inherits="FineUI.Examples.form.numberbox" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" runat="server" />
        <f:SimpleForm ID="SimpleForm1" BodyPadding="5px" Width="550px" LabelAlign="Top" EnableCollapse="true"
            Title="简单表单" runat="server" LabelWidth="120px">
            <Items>
                <f:NumberBox Label="0 到 9 的整数" ID="NumberBox1" runat="server" MaxValue="9" MinValue="0"
                    NoDecimal="true" NoNegative="True" Required="True" EmptyText="比如 8" ShowRedStar="True" />
                <f:NumberBox Label="非负整数" ID="NumberBox3" runat="server" EmptyText="比如 99"
                    NoDecimal="True" NoNegative="True" Required="True"
                    ShowRedStar="True" />
                <f:NumberBox ID="NumberBox4" runat="server" EmptyText="精度为 3，比如 0.356" Label="0 到 1 之间的小数"
                    MaxValue="1" MinValue="0" DecimalPrecision="3" NoNegative="True" Required="True" ShowRedStar="True">
                </f:NumberBox>
                <f:NumberBox Label="任意整数" ID="NumberBox5" NoDecimal="true" runat="server" />
                <f:Button ID="btnSubmit" runat="server" ValidateForms="SimpleForm1" Text="提交表单" OnClick="btnSubmit_Click">
                </f:Button>
            </Items>
        </f:SimpleForm>
    </form>
</body>
</html>
