<%@ control language="C#" autoeventwireup="true" inherits="Shop_UserControls_HowaveCity, WebApp_deploy" %>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<div style="float:left;">
<asp:DropDownList ID="Province" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1" DataTextField="Province" DataValueField="Province" AppendDataBoundItems="True" Width="80px">
    <asp:ListItem Selected="True" Value="" Text="所在地"/>
</asp:DropDownList>&nbsp;
</div>
<div style="float:left;">
<asp:UpdatePanel    ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:DropDownList ID="City" runat="server" DataSourceID="ObjectDataSource2" DataTextField="City" DataValueField="City" Width="80px"/>&nbsp;
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Province" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>
</div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllProvince"
    TypeName="Shop_City" />
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetCity"
    TypeName="Shop_City" >
    <SelectParameters>
        <asp:ControlParameter ControlID="Province" DefaultValue=" " Name="Province"
            PropertyName="SelectedValue" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>

