
I am using an ASP update panel and RadAjaxLoading Panel. I prompt the user to save the details when he navigates away. I get an "Error: Unspecified error." ,when I click on the cancel button in the popup which appears. Is there a workaround/Fix for this?
Regards,
Saravanan
7 Answers, 1 is accepted
Thank you for contacting Telerik Support.
Could you please elaborate a little bit more on your scenario? Are you using RadAjaxPanel or RadAjaxManager controls? Also how have you tried to save the details, using Ajax? If you are able, please send us sample runnable project which shows the issue, so we could test it locally and advise you further.
Greetings,
Maria Ilieva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.

Hi,
Let me explain in detail
I am using Ribbon UI in my master page. The content pages are within ajax update panel and RadAjaxLoadingPanel. I prompt my users to save the form details, when they navigate away from a page.
Scenario:
If a user does not save a form and tries to navigate away by clicking on a button in the ribbon UI(redirects to some other page), a prompt appears with Ok and Cancel. If the user clicks OK, he navigates to the link. If he clicks on cancel, the page redirection will not happen.
Error:
When the user clicks cancel, An "unspecified error" pops up. This happens only if the user tries to navigate by clicking a button in ribbon UI
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();--------->Error here
}
}
Regards
Sarvanan
Have you tested the application using regular asp UpdatePanel instead of RadAjax? Also does the error appear if the ajax is totally disabled on the page?
All the best,
Maria Ilieva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.

I created a custom window.onbeforeunload function that will show a message when the user leaves the page by clicking a link. However, when they click cancel on the prompt, they will get this "Error:Unspecified error" message. Any resolution to this problem?
Can you please make some local test by disabling the Ajax on the page and verify if the error persist. Also please try using regular asp UpdatePanel and let us know what the result is.
All the best,
Maria Ilieva
the Telerik team

Please also test the application with asp UpdatePanel instead of RadAjax. This will help us isolate the source of the issue and if it is the RadAjax.
Kind regards,
Maria Ilieva
the Telerik team