Skip to content

Tip – How to Use a AsyncPostBackTrigger from a dropdownlist change

February 2, 2012

If you have a Placeholder that contains something like a DataGrid Table which you don’t want a page refresh to change records from a drop down list. All you need to do is add an AsyncPostBackTrigger inside an UpdatePanel to update the records in the PlaceHolder using AJAX. The page refresh is avoided, when you change items in the drop down list ddlItems.

<asp:UpdatePanel ID=”upUsers” runat=”server” UpdateMode=”Always”>
<asp:PlaceHolder ID=”PlaceHolder1″ runat=”server”></asp:PlaceHolder>
<asp:AsyncPostBackTrigger ControlID=”ddlItems” EventName=”SelectedIndexChanged” />


From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: