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

ASP Session Expiry in an usercontrol edit form

3 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 30 Aug 2010, 10:05 AM
Hi All,
       
             I am using radgrid with usercontrol insert and edit forms opening in popup mode. I have written the session expiry check in the Page_Load handler of the usercontrol which will redirect to some expired page. I also use radajaxmanger with the grid.

When the editform is left open till the asp session expires and when the next postback happens it is not hitting the pageload handler instead it gives some javascript error. Kindly help me in handling this situation.

Regards,
Saravanan K

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 02 Sep 2010, 09:32 AM
Hello saravanan,

What does the javascript error message states? And is it replicable in case you are using ASP:UpdatePanel instead of RadAjax? Providing further information on your case will help us isolate the issue.

All the best,
Iana
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
0
saravanan k
Top achievements
Rank 1
answered on 01 Oct 2010, 06:49 AM
Hi Iana,

           Thanks for the reply. I observed another scenario where a similar kind of javascript error appears.
               1. The page which contains ajaxified radgrid is currently in use.
                2. By the time the site administrator blocks the access to the entrire site by adding a app_offline.htm to the site root directory.
                3. Once that is done, if u click on any edit buttons or sort buttons in the grid then the error says,

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404

The error message is something similar for the session expiry condition too.
Kindly help.

Regards,
Saravanan K
0
Iana Tsolova
Telerik team
answered on 04 Oct 2010, 10:34 AM
Hello saravanan,

In this case the error is rather expected. As the application is offline, upon ajax request the code that should be executed could not be found and that is why the unknown error with status code 404 occurrs. You can check the solution provided in this article for error handling.

Regards,
Iana
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
Tags
Grid
Asked by
saravanan k
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
saravanan k
Top achievements
Rank 1
Share this question
or