I am developing my first asp.net site, my requirement is to update DropDownListBin the SelectedIndexChangedevent DropDownListAI installed AutoPostBack="True"for DropDownListA. Now the problem is that the whole web page is being updated, for me there is no need, is there any other method that I can use to update only this control or just this panel, and not refresh the whole page?
DropDownListB
SelectedIndexChanged
DropDownListA
AutoPostBack="True"
Put the dropdowns inside
<asp:UpdatePanel ID="up1" runat="server"> <ContentTemplate> // Dropdowns </ContentTemplate> </asp:UpdatePanel>
and turn on <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>at the top
<asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
1- UpdatePanel, .
UpdatePanel
2- jQuery AJAX JSON , , UpdatePanel
AJAX
JSON
, google,
[EDIT]