I am using fancybox to create a modal where the user searches for some information they want to link back to their profile. Once they click save, the database is updated with this linkage and the UpdatePanel should be updated to reflect the change. At present, the entirety of the page reloads, instead of just a partial.
Here is what I have for the fancybox afterclose function:
$(".iframefancy").fancybox({
width: '690',
closeBtn: true,
preload: true,
helpers: {
overlay: {
closeClick: false
}
},
afterClose: function () {
__doPostBack('indpnl', '');
}
});
UpdatePanel is as follows. "btnnewcontact" is the button in the modal that saves the data to the database.
<asp:UpdatePanel runat="server" ID="indpnl">
...listview here containing the profile...
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnnewcontact" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
It seems like I must be missing something in the page lifecycle.