经典 ASP 脚本超时

发布于 2024-08-23 16:07:25 字数 72 浏览 2 评论 0原文

是否可以捕获经典 ASP 脚本超时并重定向到正确的自定义错误页面,以避免用户看到运行时错误页面?

Is it possible to catch a classical ASP Scripting Timeout and redirect to a proper self defined error page, to avoid that the user sees the runtime error page ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

下雨或天晴 2024-08-30 16:07:25

您使用的是 IIS 吗?您可以将 IIS 配置为具有预定义的错误页面。

编辑

看看此站点,了解如何在 IIS 上配置错误页面。您应该能够创建一个错误页面,每当发生超时时,该页面都可以向用户显示一条友好的消息...我知道,对于我工作的公司来说,我们在最近升级系统之前经历过 SQL 超时。

您还可以查看此站点获取一些经典的 ASP 代码最新的服务器错误。

希望这有帮助。

Are you using IIS? You can configure IIS to have a predefined error page.

EDIT

Take a look at this site on configuring your error pages on IIS. You should be able to create an error page that can display a friendly message to the user whenever timeouts occur...I know for the company I work for, we experienced SQL timeouts before recently upgrading our systems.

You can also look at this site for some classic ASP code to get the latest server error.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文