AutoPostBack – How to submit (PostBack) page when a DropDownList item is selected

Thanks to the AutoPostBack attribute, you can easily submit the form when the user selects an item from a DropDownList. All you need to do is set the AutoPostBack attribute to true inside the DropDownList tag, as seen in the following example:

<asp:DropDownList id="myDropDown" runat="server" AutoPostBack="True"></asp:DropDownList>

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top