Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
WebAsyncRefreshPanel and SharePoint
posted

Greetings,

I was having issues with a WebAsyncRefreshPanel not working in a Microsoft SharePoint environment, namely that the postbacks from controls within the panel were only occurring once, with any subsequent attempts failing.  After reading the following post...

http://forums.archive.infragistics.com/readmessage?id=%3C2c08997$32849066$2c1d78@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webasyncrefreshpanel 

I thought I should share another possible solution that has worked for me.  I did not feel comfortable making modifications to the SharePoint OOB files, but was able to make the WARP work by doing the following:

    1. Set the RefreshComplete property of the WARP to point to my own custom js function
    2. Implement the custom js function as follows...

        function warp_RefreshComplete(){
            try { _spFormOnSubmitCalled = false; }
            catch(e) { }
        }

With this implementation, all postbacks are working from within my WARP.  Anyway, just wanted to share in case anyone else was having the same problem.

Thanks!