Author: Qing Gu Gang prettywolf@vip.sina.com in ASP.NET applications, server-side controls to our development work has brought a lot of convenience, but the cost is to increase the burden on the server processes, frequent submitted greatly increased network resources Use and server resources. This article describes the use of JavaScript and other means to increase browser-end processing capabilities to improve application performance, which is a good choice for data that is not high in status requirements. By following we understand the use of this method through an example. Suppose there is such a need: register information for several people (for simplicity, only name and age is used in the instance). If you use the server processing method, you will be submitted for each person information for each person's information, even if the improved operation is not very convenient to each time the specified number of personnel information form is still. So what is the effect of using browser-end processing? Please see the picture below:
Click the [Add Personal Information] button to generate a group of "name", "age" input form, and then click to generate several groups. Each group can be deleted separately. When you click the [Submit] button, all personnel added to the above will be submitted to the server through the submission, and the entire entry process is smoothly submitted, and there is also a good improvement to the user experience. The implementation of this feature is actually very simple, please see the following code: <% @ page language = "c #" codebehind = "Webform1.aspx.cs" autoeventwireup = "false" inherits = "scriptform.webform1"%>
3C
// DTD html 4.0 transitional // en ">