<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" RenderMode="Inline" UpdateMode="Conditional">
<ContentTemplate>
下拉框 一:<asp:DropDownList ID="droprivince" AutoPostBack="true" OnTextChanged="dd_province_TextChanged" Style="width: 100%;" class="form-control" runat="server"></asp:DropDownList>
下拉框 二:<asp:DropDownList ID="drocity" Style="width: 100%;" class="form-control" runat="server" AutoPostBack="true" OnTextChanged="dd_coty_TextChanged"></asp:DropDownList>
下拉框 三:<asp:DropDownList ID="droarea" Style="width: 100%;" class="form-control" runat="server"></asp:DropDownList>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" RenderMode="Inline" UpdateMode="Conditional">
<ContentTemplate>
下拉框 一:<asp:DropDownList ID="droprivince" AutoPostBack="true" OnTextChanged="dd_province_TextChanged" Style="width: 100%;" class="form-control" runat="server"></asp:DropDownList>
下拉框 二:<asp:DropDownList ID="drocity" Style="width: 100%;" class="form-control" runat="server" AutoPostBack="true" OnTextChanged="dd_coty_TextChanged"></asp:DropDownList>
下拉框 三:<asp:DropDownList ID="droarea" Style="width: 100%;" class="form-control" runat="server"></asp:DropDownList>
</ContentTemplate>
(要想一些样式不变化就加上这些)
<Triggers>
<asp:AsyncPostBackTrigger ControlID="droprivince" EventName="TextChanged" />
<asp:AsyncPostBackTrigger ControlID="drocity" EventName="TextChanged" />
<asp:AsyncPostBackTrigger ControlID="droarea" EventName="TextChanged" />
</asp:UpdatePanel>
后台就按照触发事件,没有什么变化