During project integration over the past two days, the encoding formats are different, and the data submitted by Ajax is garbled.
After reading the materials, add the red font (set the content encoding format)
Function modcomlevel (){
VaR
1. Both are implemented using XML technology,
2. Both use the HTTP protocol.
3. Both implement data exchange between different development languages on different platforms
But there are many differences between the two.1. WebServices is a
Client callback provided by ASP. NET 2.0
ASP. NET 2.0 has been released. 2.0 has many new features, and client callback is one of them. Client callback allows us to call methods on the server without sending back. It is consistent with the functions
Recently, I mainly helped a team test and optimize the project. It may be because most of the participants in the project are new users and they are not very familiar with Ajax, resulting in abuse of Ajax controls, this article mainly summarizes
Read message: After logging on, read the message after logging on. When obtaining the message for the first time, obtain the ID of the last row. When the message is read again, use the SQL statement to judge> the value of the last row ID
Create a new web site, and add an Ajax-enable WCF Service in the site, for example, Service
After the file is created, there will be a CS file under appcode and an SVC file under the root directory. the backend file to which this file is directed
//Default.aspx
Digg ------ separation line --------------------------
// Digg. aspx
Using system; using system. data; using system. configuration; using system. collections; using system. web; using system. web. security;
// Add async: false. That is, modify it to synchronize. // After Ajax assigns a value to the Bol, execute the following JS part. In asynchronous mode, the value has been returned before it can be assigned. Function vyes () {var Bol = false; $. ajax (
Iii. Potential of networks
The greatness of the internet age lies in the interconnection of all computers around the world, just like in a very large computing resource. Remote and local process calls become difficult to differentiate, and
Modify your web. config file as follows!
Set compilation DEBUG = "true" to insert the debugging symbolCompiled pages. However, thisPerformance is affected, so this value is only available during development.Set to true.-->In the section, you can
Jquery is a great JS library. While using jquery, we should also take a good look at how its effects are made, which is much better than reading many so-called JS books. The following is the $. Ajax implementation code of a great function:
Code:
//
Today, when I completed my own online bookstore project, I was ready to use ajax to perform operations when I checked the book comments. (previously, I refreshed all the pages directly and felt uncomfortable. I just learned Ajax, so I think Ajax is
Document directory
The button is released
When you use the ajaxcontroltoolkit ajaxtoolkit: popupcontrolextender control, if a button exists in the pop-up box, the above error is often encountered.
The following is a discussion page on Google
What Is Ajax? It is difficult for everyone to know about it, so we will not talk nonsense here.
But I want to repeat the history of XMLHTTP. Although I do not like Microsoft very much, it seems that Microsoft has made many interesting things,
Using JavaScript for asynchronous data submission is much more efficient than directly using the ready-made Ajax control (I have only used ajax.net)
The experiment found that large data could be submitted-about 40 kb of Experiment
Function dosubmit (
Document directory
Parameter List:
Jquery makes Ajax easier to implement.
In jquery, the advanced implementation of Ajax mainly includes $. Get (), $. Post (), etc. The usage of $. Ajax () is described in detail below.
1. Request Ajax. aspx
The
First, add several divs on the page: used to display the queried data display the page number used to display the previous, next ,..., home page, end page, and other control buttons display the page number of the current page
Implement the
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.