This is a migrated thread and some comments may be shown as answers.

onBeforeUnload causing PageRequestManagerParserErrorException

2 Answers 64 Views
AjaxPanel
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 25 Sep 2015, 04:12 AM

Hi, 

I am getting following error If I ​​use any control inside RadAjaxPanel that causes autopostback (such as changing RadComboBox selection), once after seeing the confirmation from "OnBeforeUnload" event and opts to ​Stay on the ​page.

 

Exception: screen:sys.webforms.pagerequestmanagerparsererrorexception

I am using following code for on​BeforeUnload event handling:

                window.onbeforeunload = function(e)
                {                   
                    if (IsDirty() == true)
                    {
                        var ev = e || window.event;
                        ev.returnValue = "Are you sure?";
                        return "Are you sure?";
                    }
                }

Reference url: http://www.telerik.com/forums/isdirty---ajax-dirty-panel

 

Please help me into this issue.

 

thanks!

Ankit

2 Answers, 1 is accepted

Sort by
0
Ankit
Top achievements
Rank 1
answered on 25 Sep 2015, 06:06 AM
Update: I am using MasterPage in this.
0
Maria Ilieva
Telerik team
answered on 29 Sep 2015, 12:04 PM
Hello,

Please share your page markup as well as the ajax settings so that we can revise them locally and advise you further.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AjaxPanel
Asked by
Ankit
Top achievements
Rank 1
Answers by
Ankit
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or