Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hello,

                                    My web site, for arguments sake mywesite.co.uk/default.aspx, contains a AnonymousTemplate with the login boxes and a LoggedInTemplate which contains a menu accross the top of the page, then an iFrame in which pages are displayed for user interaction. My problem is that when a callback fails as a result of a session timeout <add key="DXCallbackErrorRedirectUrl" value="logintemplate.aspx"/> redirects the iframe and not the whole page. I did try to implement a work around using window.top.location.reload() but was unable to ascertain a condition for which to fire it.

                                    The question is, can I refresh the whole page (mywesite.co.uk/default.aspx) on a callback failing inside an iframe thus automatically taking me to my login template or is there a way to utilize DXCallbackErrorRedirectUrl to achieve the same thing?

                                    Hope this makes sense.

                                    Thanks,
                                    Rob

                                0
                                I made a mistake in my post.

                                <add key="DXCallbackErrorRedirectUrl" value="logintemplate.aspx"/>

                                should read

                                <add key="DXCallbackErrorRedirectUrl" value="http://www.mywesite.co.uk/default.aspx/>

                                cheers
                                0
                                Hello Rob,

                                Thank you for your patience.

                                We advise against using the approach with <add key="DXCallbackErrorRedirectUrl" value="http://www.mywesite.co.uk/default.aspx/> because it is not suitable for this scenario.

                                We recommend that you use the <helplink href="ms-help://DevExpress.NETv11.1/DevExpress.AspNet/DevExpressWebASPxGlobalEventsASPxGlobalEventsMembersTopicAll.htm">ASPxGlobalEvents</helplink> control and handle the <helplink href="ms-help://DevExpress.NETv11.1/DevExpress.AspNet/DevExpressWebASPxGlobalEventsScriptsASPxClientGlobalEvents_CallbackErrortopic.htm">CallbackError </helplink> event.

                                <code lang="aspx">
                                 <dx:ASPxGlobalEvents ID="ASPxGlobalEvents1" runat="server">
                                       <ClientSideEvents CallbackError="function(s, e) { window.top.location = 'http://www.devexpress.com'; }" />
                                 </dx:ASPxGlobalEvents>
                                </code>

                                Attached is a sample.

                                Thanks,
                                Jenny
                                Q343228.ZIP
                                0

                                Hi Jenny,

                                Thanks for the solution, I'll give it a go.

                                Rob

                                0

                                Hello Rob,

                                We are glad to hear that you have found our assistance useful. If you need any further help, please feel free to reactivate this ticket.

                                Thanks,
                                Jenny

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners