Customizing error handling for ASP.net UpdatePanel controls

Source: Internet
Author: User
Tags error handling

Prerequisite

To implement these procedures in your own development environment, you need to:

Microsoft Visual Studio 2005 or Microsoft Visual Web Developer Express Edition.

An AJAX-enabled ASP.net web site.

Customizing error handling in server code

First, you will customize error handling by using the server code in the page.

Customizing error handling in server code

Create a new page and switch to Design view.

In the AJAX Extensions tab of the Toolbox, double-click the ScriptManager control and the UpdatePanel control to add them to the page.

Add the following controls to the UpdatePanel control:

Two TextBox controls.

A Label control

A Button control. Set the control's Text property to calculation.

UpdatePanel some text in the control.

Related Article

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.