Abstract: Ajax is actually a transitional technology with a new bottled old wine. I believe it will be replaced by new technologies in the next one to two years, it is difficult to form a highly abstract framework-level solution to solve the problem,
Problem: Use ajax to pass string variables from the front-end page to the server. The content to be transmitted is ABC +, but after receiving the data, use system. Out. println () to output ABC spaces.
Cause: Some Characters in the URL are
Now, more and more Ajax applications are used. The company found some materials on the Internet so that they can be used in the future, however, I have not found any examples in development. Now I have posted a simple example for your reference. I
One of the ways to submit a form using Ajax is to convert the form data into a string of request strings. Below is
Convert form data into a string of request strings
Function formtorequeststring (form_obj){VaR QUERY_STRING = '';VaR and = '';//
Front-end
No title page
click
receive background data
Background
Using system;
Using system. Data;
Using system. configuration;
Using system. collections;
Using system. Web;
Using system. Web. Security;
Using
Finally, it's a good time.
An example of Ajax partial Refresh:
Front-end page:
Ajax partial refresh
Background page: [getpart. asp]
Dim rs
Dim SQL
Set rs = server. Createobject ("ADODB. recordset ")
SQL = "select * From king_test"
// Ajax application
// My God, I cannot understand PHP. Forget it. Find an example of Asp.net.
/*
Use jquery to generate a div container with the ID "rating ".
The Code generates five links and appends them to the "rating" container. When one of
There are many messy solutions on the Internet, such as setting up Web. config.
Thanks to the monkey for telling me the most common method is the front-end JS Chinese code escape () and backend decoding server. urldecode ()
In addition, if the
Today I have nothing to worry about. in C #2.0, I used ajax to write an example of refreshing and fast paging. The time is too short. For the shortcomings, please point out that we should first put ajaxpro. DLL file to reference, you can go to http:/
Originally, when I wrote Ajax in vs2003, I referenced Ajax. dll. Today I used vs2005 to find that this Ajax cannot be used. In the previous call dialog box, "jscript runtime error: the object is missing", so I found an ajaxpro.2.dll to reference it.
Ajax application scenarios
1. Form-driven Interaction
For traditional form submission, after entering the content in the text box, click the button. After the background processing is complete, the page is refreshed, and then check whether the
If you do not use any help package, you may write a large amount of code to create an XMLHTTPRequest object and asynchronously track its process, then parse the response and process it. You are very lucky when you do not need to support more than
var xmlhttpreq; // create the XMLHTTPRequest object function createxmlhttprequest () {If (window. XMLHttpRequest) {// Mozilla xmlhttpreq = new XMLHttpRequest ();} else if (window. activexobject) {// IE browser try {xmlhttpreq = new activexobject
1. Resource websites
1. Chinese website
1) Ajax China (recommended)
A professional Ajax technology website with clear categories, a large number of electronic tutorials, and Ajax source code downloads!
Http://www.okajax.com
2)
Ajax is usually used for asynchronous processing, but in some cases, Ajax synchronization is used to process data. For example, when detecting data with JS, Ajax is required to submit a request to obtain whether the user exists in the database, this
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.