1. screen migration should use the Response that executes screen redirection. redirect instead of Server. transfer, because Server. transfer does not change the IE client URL, which causes ASP. a URL error occurs when the. net ajax script accesses the resource.
2. the ScriptManager class should be used to register scripts and hidden fields on the server, instead of pages. clientScript object, because Page. the ClientScript method is to register the script to a global object, which will cause local update, these scripts will not be sent to the client, and the ScriptManager method is the opposite. The ScriptManager class can be used no matter whether there is a ScriptManager control on the screen.
3. put both the event source control and the control to be updated to UpdatePanel. If only the updated control is placed in UpdatePanel, the event source control triggers a send-back event to refresh the screen, just like the UpdatePanel control.
4. Add the hidden fields and controls involved in the update to UpdatePanel. If the hidden field is not placed in UpdatePanel, its value cannot be modified during update. Similarly, the hidden control to be operated cannot be operated in UpdatePanel.
5. ASP. net ajax script method should be executed after the ScriptManager label, because the place where the ScriptManager is placed is embedded with ASP. net ajax script library, which means that the code before this cannot access the script library method.
6. Handle Sys. WebForms exceptions because these exceptions may lead to errors that are hard to understand and should be blocked when necessary.
- Implementation of ASP. NET plug-in
- Overview ASP. NET Applications
- Introduction to ASP. NET 2.0 Data Binding
- ASP. NET prevents Java Script Injection attacks
- ASP. net mvc using T4