<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table dir="rtl" style="width:100%;">
        <tr>
            <td>
                <asp:Label ID="Lbl_UserName" runat="server" Text="نام کاربری :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_UserName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="Txt_UserName" ErrorMessage="ورود نام کاربری الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Pass" runat="server" Text="کلمه عبور :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Password" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="Txt_Password" ErrorMessage="ورود کلمه عبور الزامی می باشد" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_RePass" runat="server" Text="تکرار کلمه عبور :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_RePass" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="Txt_Password" ControlToValidate="Txt_RePass" 
                    ErrorMessage="کلمه عبور خود را دوباره وارد نمایید" ValidationGroup="110">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Name" runat="server" Text="نام :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Name" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="Txt_Name" ErrorMessage="ورود نام الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Family" runat="server" Text="نام خانوادگی :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Family" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="Txt_Family" ErrorMessage="نام خانوادگی الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Tell" runat="server" Text="تلفن : "></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Tell" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="Txt_Tell" ErrorMessage="ورود تلفن الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Mobail" runat="server" Text="تلفن همراه :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Mobail" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="Txt_Mobail" ErrorMessage="ورود تلفن همراه الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Email" runat="server" Text="آدرس ایمیل :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Email" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="Txt_Email" ErrorMessage="ورود آدرس ایمیل الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="Txt_Email" ErrorMessage="آدرس ایمیل را صحیح وارد نمایید" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="110">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Address" runat="server" Text="آدرس :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Txt_Address" runat="server" Width="500px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="Txt_Address" ErrorMessage="ورود آدرس الزامی است" 
                    ValidationGroup="110">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="Btn_Save" runat="server" onclick="Btn_Save_Click" 
                    Text="ثبت نام" ValidationGroup="110" />
                <asp:Button ID="Btn_Cansel" runat="server" onclick="Btn_Cansel_Click" 
                    Text="انصراف" />
                <asp:Label ID="Lbl_Error" runat="server" Font-Bold="True" ForeColor="Red" 
                    Visible="False"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    ForeColor="#FF3300" ShowMessageBox="True" ValidationGroup="110" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

