By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

AJAX Update Panel Login timeout issue.

P: 3
Desperately need help. We are using a .Net AJAX control panel and having an issue with when a user times out of our Authenication platform. If a user stays on the screen with no activity for 15mins they are unauthenicated in the background. If they then decide do a update/event on that page the response is a login page that is causing a error. We are trying to create a script that can read the response for a HTML tag of the response and if it is a certain string send the page to login.aspx. Any ideas or help would be greatly appreciated.
Saint
Feb 4 '08 #1
Share this Question
Share on Google+
4 Replies


iam_clint
Expert 100+
P: 1,208
sure its possible what part are you getting hung up on?
Feb 4 '08 #2

P: 3
I am hung up on how to evaluate the response with javascript. Looking for a tag element. For example <title> .....This is the best way I can see of handling this error any other suggestions would be greatly appreciated.
Feb 4 '08 #3

P: 3
We have got this working but it is too general for the error handling. We would like to interogate the response data possibly and if its the login page take action

if (Args.get_error() && Args.get_error().name === 'Sys.WebForms.PageRequestManagerParserErrorExcepti on')
{
alert('Caught a PageRequestManagerParserErrorException!');
}
Feb 4 '08 #4

iam_clint
Expert 100+
P: 1,208
I will need more information such as
What type of error is displaying
-an ajax error
-a html error
-a javascript error


do you need ajax error handling
javascript error handling
serverside error handling

I need more details

you can read an html tag via document.getElementsByTagName("insertagname");

which is going to be an array of tags with that tag name which can be viewed vie document.getElementsByTagName("insertagname")[arraynumber]

and you can get its innerhtml like this document.getElementsByTagName("insertagname")[arraynumber].innerHTML
Feb 4 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.