<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" Inherits="PirTickets.StatuseForm" Title="Statuse" Codebehind="StatuseForm.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table cellpadding="2" border="0">
        <tr>
            <td colspan="4"><h2>Add New Repair Status</h2></td>
        </tr>
        <tr>
            <td>Id:</td>
            <td><span style="color:red;">*</span></td>
            <td>
                <asp:TextBox ID="txtID" runat="server" ontextchanged="TextBox1_TextChanged" 
                    MaxLength="2" Width="40px" AutoPostBack="True"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator2" runat="server" 
                    ControlToValidate="txtID" ErrorMessage="Must be 0-99" MaximumValue="99" 
                    MinimumValue="0" Type="Integer"></asp:RangeValidator>
            </td>
            <td><asp:RequiredFieldValidator ID="RfvId" ControlToValidate="TxtId" ErrorMessage="Id is required." Display="Dynamic" runat="server" />
                <asp:Label ID="lblExists" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>Status Order:</td>
            <td><span style="color:red;">*</span></td>
            <td>
                <asp:TextBox ID="txtOrder" runat="server" MaxLength="2" Width="38px"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="txtOrder" ErrorMessage="Must be 0-99" MaximumValue="99" 
                    MinimumValue="0" Type="Integer"></asp:RangeValidator>
            </td>
            <td><asp:RequiredFieldValidator ID="RfvStatus_order" ControlToValidate="txtOrder" ErrorMessage="Status Order is required." Display="Dynamic" runat="server" /></td>
        </tr>
        <tr>
            <td>Status Name:</td>
            <td><span style="color:red;">*</span></td>
            <td>
                <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RfvStatus_order0" runat="server" 
                    ControlToValidate="txtName" Display="Dynamic" 
                    ErrorMessage="Status Name is required." />
            </td>
        </tr>
        <tr>
            <td colspan="2"></td>
            <td colspan="2">
                <asp:Button ID="BtnUpdate" runat="server" Text="Submit" 
                    onclick="BtnUpdate_Click" />&nbsp;&nbsp;
                <asp:Button ID="BtnCancel" CausesValidation="false" runat="server" 
                    Text="Cancel" onclick="BtnCancel_Click" />
            </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
