Click here to Skip to main content
15,742,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
its a general discussion question, when we should use web methods to fetch data from database and whether there is any performance issue , which one is faster or Webmethod Using through java script or Jqyery.
KaushalJB 22-May-14 5:26am    
To stop postbacks we use clientside jquery or javascript...and obviously calling a webmethod is faster as we call it from clientside without performing a postback...
Performance may vary according to your size of data that you fetch or update.

1. If there is desktop application which is installed on multiple pc and that application interact with single database at that time you have to use web service concept.

2. Web Application => you have to give access some outside the resources at time web service is very useful. For example Now a day most of application are common for web and mobile device so at this point you use web service.

Using Jquery call is faster then post back call like using page to get response.
Share this answer
Kaushal is correct. It would depend upon the amount of data you are fetching.
Normally, WebMethod is faster than the Code Behind method of accessing the data from database. It also gives you the advantage of not Post Backing the form.

So, upto you. Decide whether you want user to experience a quicker and not Post Back interface or not.
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900