Click here to Skip to main content
15,886,026 members
Articles / Web Development / ASP.NET

Calling a C# method using jQuery on the client side

Rate me:
Please Sign up or sign in to vote.
1.47/5 (14 votes)
2 Oct 2011CPOL 29.6K   6  
Create a web service name WebMethod.SVC in the CS file and add the method: [OperationContract] [WebInvoke(Method = "POST")] public void DeleteRec(string ID) { DelUser(Convert.ToInt32(ID)); }On client side, give the path and call the...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
15 Sep 2011Anuja Pawar Indore 2 alternatives  
Calling a C# method using jQuery on the client side.
Please Sign up or sign in to vote.
15 Sep 2011Steven O
Another alternative is to use AjaxPro.dll. It is a library that was developed by Michael Schwarz that you simply drop in the bin folder of your ASP.NET web applications. You can find more information or download this library at http://www.ajaxpro.info.To use it:Add an HttpHandler to your...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Program Manager Infobeans
India India
I have keen interest in learning new things, exploring more on a topic and being more versatile

Comments and Discussions