0

I am using a jquery.fancybox-1.3.4.pack.js for opening a user control as a pop up. My parent page has server control like drop downs. When I click on cancel (cross mark). It closes the fancy box and my page gets loaded without postback, but none of my server controls are firing the server event.

I don't want my parent page to reload on click of cancel.

I have a user control and that user control has an anchor and two drop down (asp.net server control)

The anchor tag:

<a href="~/Account Data/View.aspx" id="A2"  clientidmode="Static" runat="server" target="_self"  class="fancy"   style="line-height:16px"></a>

On click of this anchor tag my jQuery function gets called

$('a.fancy').fancybox({
            type: 'ajax',
            onComplete: fancyboxManager.initialize,
            padding: 0,
            overlayColor: '#000000',
            overlayOpacity: 0.62,
            scrolling: 'no',
            afterClose: function () {
               // location.reload();
                return;
            }
        });

The fancy box opens correctly but when I click on close button then it closes the pop up but none of the server control events are getting fired. My requirement is that I can't referesh the page after close.

I guess this is happening due to break in the postback event caused by the fancy box

4

0 回答 0