Ajax client asynchronously calls the implementation method of the server (js calls the cs file), ajaxcs
The following describes how to use ajax to call the method in the cs file in javascript:
(1) download ajax. dll and add a reference to the project.
(2) add <add verb = "POST, GET" path = "ajax /*. ashx "type =" Ajax. pageHandlerFactory, Ajax "/> node
(3) add Ajax. Utility. RegisterTypeForAjax (typeof (ClassName) to the pageload method on the aspx page. The ClassName here is the class name of the current cs file.
(4) add [Ajax. ajaxMethod ()]. If you want to call a session, you must write it as: [Ajax. ajaxMethod (HttpSessionStateRequirement. read)].
(5) In the js method, write var address = ClassName. MethodName ('parameter '). value; // ClassName is the class name, MethodName is the method name, and the input parameter is parameter.
The above Ajax client asynchronous call to the server implementation method (js call to the cs file) is all the content shared by xiaobian. I hope to give you a reference, and I hope you can also support the help house.