Combined with delegation and Ajax, the open-source user control of the dialog box without refreshing confirmation is implemented.

Source: Internet
Author: User
Ajax:
That is, Ajax. It is not explained. ajaxcontroltoolkit. dll is used.

Delegate:
Use the delegate technology to create an "Event" for our user controls. You can bind an event to the control and call the external interface when an event is executed internally.Code.

Advantages:
Combination of the two = rich UI Experience + strong flexibility.

Makes user controls, keeps open source features, and learns from other aspects to facilitate debugging and expansion.

There are still some imperfections. Please help solve them:
(See the use of source code)
1. If table is not used, a line break will appear during display. Can I add a line break to a webpage like a normal link through internal processing in the user control?
2. when I use GET/set in the user control to set attributes, values can be assigned in the code to display them. During design, values cannot be assigned because labels are not generated. What is the correct method? To modify attributes in the design view in a browser, it is best to modify the attributes in the design view. The text of the user control also changes.
3. How to Write a custom control (DLL) to the web )? Web control cannot be added during custom control design. What should I do if I want to use ajaxtoolkit?
4. the Ajax control bound to datalist cannot obtain the binding property. Is there a one-time feature in datalist? After each item is displayed, the server executes dispose ()? Otherwise, the binding in it alone becomes invalid.

Basic Environment:
. NET Framework 2.0
Iis5 +

Debugging environment:
Vs2005

Download: http://files.cnblogs.com/lqb/AJAXEnabledWebSite1.rar

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.