I have a gridivew inside an Update Panel that works as intended except when a linkbutton within the grid is clicked.
This is meant to display a usercontrol form using a modalpopupextender, but clicking the button in the gridview causes the whole page to reload before the modalpopup window appears.
I have tried:
AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
trigger.ControlID = hyperlink.UniqueID;
trigger.EventName = "Click";
pnSearchResults.Triggers.Add(trigger);
which seems to work once then the previous behaviour returns. How can I enforce async post back on all gridview actions? Code below:
<asp:UpdatePanel runat="server" ID="pnSearchResults" ChildrenAsTriggers="true">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="grdSearch" />
</Triggers>
<ContentTemplate>
<asp: ...
Go to the complete details ...