Explore the message transfer mode in asp.net ajax (i)

Source: Internet
Author: User

What are the ways in which message transmission is used in our AJAX applications? Plain text, text with HTML, XML, JSON? And also??? In many cases, pure text message transmission is sufficient. For example, to transfer a user name, user password, or user contact method (phone,email,msn), is usually transmitted as text. such as complex point of data information, tables, objects or is??? So that we can use XML or JSON to format the data and then transmit it.

There is such an AJAX application, providing a series of tag connections, allowing users to choose any, the browser to send requests to the server query to get the desired data information. The following is a discussion of message transfer in this application.

One, ordinary text message transmission

Build a asp.net Ajax application, first for the ajaxmessagetext.aspx page to do a simple layout preparation, we use the hyperlink control as a navigation connection, placed in a table, and set a cell as the data display area, set it as a server Control to run (runat= "Server"), as shown in the following illustration:

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.