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

time-out error page handle

P: n/a
Hi:
In my app, when the page has made a time-out, how can i redirect to a
predefined error page on the IIS, when the user try to do an action, with a
configuration in the web.config.
Jun 1 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
The browser does not know when the application times out, so you can only
handle as an error, if one occurs. You can set it so the page automatically
goes to a logoff page after so many minutes, but you should also make sure
they cannot use the back button if you do that. That is done with
JavaScript.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Laurahn" <le*****@newsgroups.nospamwrote in message
news:eQ**************@TK2MSFTNGP04.phx.gbl...
Hi:
In my app, when the page has made a time-out, how can i redirect to a
predefined error page on the IIS, when the user try to do an action, with
a configuration in the web.config.

Jun 1 '07 #2

P: n/a
Hi Laurahn,

Which time-out are you referring to? Do you mean that a page failed to
finish executing (which has a default 90 seconds for 1.x and 110 seconds
for 2.0 and can be controlled by <httpRuntimein web.config or
HttpServerUtility.ScriptTimeout property). Or do you mean the timeout of
the session.

For the request timeout, you can define a custom error page for error code
500:

<customErrors mode="On">
<error statusCode="500" redirect="ErrorPage500.aspx" />
</customErrors>
For the session timeout, please see following if following article useful:

#Build an ASP.NET Session Timeout Redirect Control
http://www.eggheadcafe.com/articles/20051228.asp

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 4 '07 #3

P: n/a
Hi Laurahn,

Have you seem above replies? Please feel free to let us know if there's
anything unclear. Thanks.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 6 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.