<%@ Control Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.FieldControl.RegionType"
    Codebehind="RegionType.ascx.cs" %>
<asp:UpdatePanel ID="UpnlRegion" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
    <%--<%InitPage(); %> --%>
        <div id="rd" class="<%=setDirection() %>">
        <ul>
            <asp:PlaceHolder ID="PlhCountry" runat="server">
            <li style="<%= IsShow("country")%>">
                   <asp:Localize ID="Localize1" Text="<%$ Res:Controls_Region_Localize1 ,  国家/地区： %>" runat="server"></asp:Localize>
                    <asp:DropDownList ID="DropCountry" runat="server" DataTextField="Country" DataValueField="Country"
                        AutoPostBack="true" OnSelectedIndexChanged="DropCountry_SelectedIndexChanged">
                    </asp:DropDownList>
                    <pe:RequiredFieldValidator ID="ValrCountry" runat="server" ControlToValidate="DropCountry"
                            Display="Dynamic" ErrorMessage="请选择国家" SetFocusOnError="True" />
            </li>
            </asp:PlaceHolder>
            <li style="<%= IsShow("province")%>">
                   <asp:Localize ID="Localize2" Text="<%$ Res:Controls_Region_Localize2 , 省/市/自治区： %>" runat="server" />
                    <asp:DropDownList ID="DropProvince" DataTextField="Province" DataValueField="Province"
                        AutoPostBack="true" runat="server" OnSelectedIndexChanged="DropProvince_SelectedIndexChanged">
                    </asp:DropDownList>
                    <pe:RequiredFieldValidator ID="ValrProvince" runat="server" ControlToValidate="DropProvince"
                            Display="Dynamic" ErrorMessage="请选择省份" SetFocusOnError="True" />
            </li>
            <li style="<%= IsShow("city")%>">
                   <asp:Localize ID="Localize3" Text="<%$ Res:Controls_Region_Localize3 , 市/县/区/旗： %>" runat="server" />
                    <asp:DropDownList ID="DropCity" DataTextField="City" DataValueField="City"
                        runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropCity_SelectedIndexChanged">
                    </asp:DropDownList>
                    <pe:RequiredFieldValidator ID="ValrCity" runat="server" ControlToValidate="DropCity"
                            Display="Dynamic" ErrorMessage="请选择城市" SetFocusOnError="True" />
            </li>
            <li style="<%= IsShow("area")%>">
                   <asp:Localize ID="Localize4" Text="<%$ Res:Controls_Region_Localize4 , 地区/县： %>" runat="server" />
                    <asp:DropDownList ID="DropArea" DataTextField="Area" DataValueField="Area"
                        runat="server">
                    </asp:DropDownList>
                    <pe:RequiredFieldValidator ID="ValrArea" runat="server" ControlToValidate="DropArea"
                            Display="Dynamic" ErrorMessage="请选择地区" SetFocusOnError="True" />
            </li>
        </ul>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>