Pagemethods:
UsingSystem. Web. Services; [webmethod]Public Static StringOK (){Return"This is function OK!";}
Note: Using and webmethod
Scriptmanager:
Sm"Runat ="Server"Enablepagemethods ="True">
Note:
Preface:
After using ASP. NET Ajax for a long time, I also read the Ajax application in jquery for a period of time. But in the end, I can't remember how to use XMLHttpRequest.
I did not know much about what I wrote before. I will repeat
Preface
When Ajax is used, when we send data to the server, we can use the get method to request the server or the POST method to request the server. so when should we adopt the get method and the post method?
Difference between GET
1. Create a web form: accordion. aspx
2. Add a scriptmanager Control
3. Add an accordion control (NOTE: When you drag the accordion control to the form, the form is displayed as anything, only added to the source code.
Code )
Code
Code
1.create a new checkuser.htm File
No title page
simple Ajax-based data verification
User name:
password:
2. Create a checkuser. xml file. admin admin
3. Create a checkuser. js file.
VaR XMLHTTP;
Function
Microsoft has developed a set of JS class libraries combined with the MVC framework to provide richer methods for original DOM objects. With jquery, what's even more exciting is that this JS actually provides a JS version of Data Binding similar to
From: http://www.cocoachina.com/macdev/network/2010/0322/774.html
1Cappuccino, needless to say, is always recommended. Javascript implements parsing similar to the objective-C syntax, and implements most of the content in the cocoa framework.
Note: The demo address is malicious.ProgramNo virus exists in the program itself, and I don't know when to start. If a netizen is poisoned, I apologize to him to express my fault, upload the source program for download. I hope you will forgive me,
What is Microsoft Ajax library?· Client section of ASP. NET Ajax· Client-only framework (independent from the server)· ProvidedJS ExtensionAndBasic Library
Common native types in javascript:· Object· Arrary· Error· Function·.....
Object native
Next http://www.cnblogs.com/Brave-Heart/archive/2008/06/25/1229839.html
Interface · Constructor throws an exception· All methods throw an exception· The registerinterface method is used to register interfaces.· Interfaces cannot inherit other
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