Include the following function on the page (or refrenced via external file):
function __doPostBack(eventTarget, eventArgument) {Then on the fancybox jQuery declaration, include the following:
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
$(".fancybox").fancybox({
'autoScale': false,
'width': 800,
'height': 800,
'type': 'iframe',
'scrolling': 'no',
'showCloseButton': true,
afterClose: function () {
__doPostBack();
}
});