<%@ control language="C#" autoeventwireup="true" inherits="Shop_UserControls_HowaveProvinceCity, HoWaveVGO" %>
<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" OnSelectedIndexChanged="Province_Changed">
    <asp:ListItem Selected="True" Value="" Text="请选择"/>
</asp:DropDownList>省
</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" AppendDataBoundItems="True">
          <asp:ListItem Selected="True" Value="" Text="请选择"/>
        </asp:DropDownList>
        市
    </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>
