Webcast practical ASP. NET Ajax series course (2): Use the client framework to create "pure" ajax applications related resources

Source: Internet
Author: User
Tags website performance

This course will start from scratch using the ASP. NET Ajax client framework/component to create a "pure" Ajax applicationProgram. This new development method is suitable for developers to learn about Ajax. The presentation layer is placed completely on the client, and only pure data is transmitted between the browser and the server. It also helps developers integrate ASP. NET Ajax client frameworks.

Watch video:( Coming soon ...)

Download PPT: Aspnetajax_in_action_2.zip

DownloadCode: Democode.zip

This code is from ASP. net Ajax program design-Chapter II: client-related Microsoft Ajax library. This chapter also describes the specific project analysis process, implementation, and coding methods.

Q & A (friends can continue to ask questions here)

ASP. NET AjaxSeries courses (2): Create"Pure"AjaxApplications
Lecturer: Chen lifu

Activity Date: --

________________________________________

Q: Have you seen my problem? After a master page, opener.doc ument. getelement ("ID") cannot be used? Is there any alternative?

A: The master page should have little to do with this problem, because after all, the master page and content are assembled on the server side and then sent to the client as a unified HTML page. Opener.document.getelementskeptical should be opener.doc ument. getelementbyid. If necessary, send the sample code of the program to me.

________________________________________

Q: Should this "pure" Ajax be used only after scriptmanager is added to the page to program with its ajaxlibrary?

A: It can be understood that the client presentation layer logic is implemented in client Javascript. We write client controls/components in the program, but the server only provides "pure" data, then, with the help of ASP. net Ajax asynchronous communication layer to complete the communication between the server and the client.

________________________________________

Q: If (typeof (sys )!... Where is that sentence written?

A: Write it in the last line of the independent Javascript file.

________________________________________

Q: Some people say that AJAX is the killer of website performance and will occupy a lot of bandwidth. What do you think?

A: Misuse of Ajax will indeed result in unnecessary network bandwidth waste, but reasonable use of Ajax will greatly save network bandwidth-after all, only part of the page content is transmitted.

________________________________________

Q: What role does add_initializerequest play in the lifecycle of a page?

A: initializerequest is the first event initiated by pagerequestmanager during asynchronous delivery. In the event processing function, we can cancel this asynchronous send-back request based on actual needs (for example, the client already has the required data, or other high-priority requests.

________________________________________

Q: I learned a method on the Internet: Create a class with only one attribute in the class. This attribute is added with an HTML-tagged string and then initialized through WebService. Is it the same as the method you just described?

A: Sorry, I didn't understand what you mean. Can you clarify?

________________________________________

Q: How to respond to server events?

A: If the response time is on the server side, you only need to write the event processing function. If you want to respond to server events on the client side, it is still difficult to use the current HTTP model.

________________________________________

Q: In the preceding example, progress is displayed first, and then the callback function is called. Is there an integer result in each callback function? Is that parameter a class instance?

A: The data in result is the returned value of the web service method. If the Web service method returns an int, it is an int. If the Web service method returns an array, it is an array.

________________________________________

Q: Can I share the RSS. Net Library? Can you send it to us?

A: Go to http://www.rssdotnet.com/for free.

________________________________________

Q: I heard that ASP. NET Ajax controls are integrated in orcas. Is that true?

A: Yes. The ASP. Net Ajax control in orcas has been integrated into the toolbox of Visual Studio.

________________________________________

Q: If I use the Asp.net Ajax framework, can I only use the client to call WebService?

A: You can also call static methods on ASP. NET pages.

________________________________________

Q: Can I pause the PostBack action of a control during the initializerequest process? Instead of abort, it refers to waiting for a client to wait for it and then deciding whether to continue the execution.

A: try the following ideas: Clone and save the current SYS. net. webrequest object during initializerequest, and then cancel the original webrequest. After other responses arrive, if necessary, obtain the saved webrequest and send it again.

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.