ASP.net 2.0 application offline information

Source: Internet
Author: User
Asp.net| Program

ASP.net 2.0 has a new feature that supports application off-line information.

What is offline information? Previously we were updating the application to ASP.net application restart, the user of the application would usually display unfriendly error messages, or IE would always show the loading state.

ASP.net 2.0 enables you to place a app_offline.htm file under the application root, and when requested, the system checks to see if the file exists, and if so, the system will return the contents of the app_offline.htm file directly to the user.

App_offline.htm content can be changed to whatever you need, but note that the file cannot be too small, because most users ' IE has a "show friendly HTTP error message" Set, and if app_offline.htm is less than 512 bytes, this setting will fail.

Also notice the Address bar, the address bar when the offline information is displayed, the Address box is still displayed.

Above I tested successfully under the ISS6



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.