Solved

how to call a webmethod from an aspx page using jquery

Posted on 2009-04-15
1
1,327 Views
Last Modified: 2012-05-06
I have webmethod declared as
[WebMethod]
public void helloworld()
{
}

and I want to call this web method from jquery in my web page.
how can i do this?
0
Comment
Question by:ziorrinfotech
1 Comment
 
LVL 9

Accepted Solution

by:
tetorvik earned 125 total points
Comment Utility
If you want to use Jquery the like below might be helpful
http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/

I would also recommend browsing through an alternative ASP.NET Ajax approach
http://msdn.microsoft.com/en-us/library/bb515101.aspx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now