开发者

AspxCallback EndCallback event doesnt work

开发者 https://www.devze.com 2023-02-15 10:16 出处:网络
I had a working a开发者_开发百科spxcallback, today it started not working. I tried everything, changed the control, gave it a new name, added a new aspxcallback control. But none of them make it worki

I had a working a开发者_开发百科spxcallback, today it started not working. I tried everything, changed the control, gave it a new name, added a new aspxcallback control. But none of them make it working.

<dxcb:ASPxCallback ID="pageCloseCall" runat="server" 
    ClientInstanceName="pgCloseCS" OnCallback="pageCloseCall_Callback">
    <ClientSideEvents EndCallback="function(s,e)
        {
            window.returnValue = e.result;
            self.close();
        }" />
</dxcb:ASPxCallback>

Thanks for the help. Mehmet Serif Tozlu


Handle the ASPxCallback's client side CallbackComplete event instead. Does it work?


<dxcb:ASPxCallback ID="pageCloseCall" **ClientInstanceName="pageCloseCall1"** runat="server" ClientInstanceName="pgCloseCS" OnCallback="pageCloseCall_Callback"> <ClientSideEvents EndCallback="function(s,e) { window.returnValue = e.result; self.close(); }" /> </dxcb:ASPxCallback>

First you have to add ClientInstanceName Attribute. Then on the server side, in the event that will trigger your AspxCallBack, you should be calling .PerformCallback() that causes the call of pageCloseCall_Callback to take place. NB: pageCloseCall1.PerformCallback() uses ClientInstanceName instead of ID.

Regrads, Andoura

0

精彩评论

暂无评论...
验证码 换一张
取 消