Home  /  Questions  /  Question



50   50
Nov 14, 2010


Calling WCF using JQuery

Hi all!

We're developing an ASP.NET 4 application using the MVP pattern.
On many pages we call WCF services which return data for ASP.NET controls like DropDownList and so on.
We have put WCF in a separate project (which is hosted in IIS)

My question is this: How to build communication between jQuery and WCF so that we can databind the data returned from WCF?
Thanks in advance for detailed answer!



50   50
Nov 23, 2010
Hi
 Since JQuery is used with web application, and when you call the WCF service from your presenter, you need to have overloaded method to support your web application, actually we had a similar situation where we get the data from the presenter as string(xml) , which in turn we parse at the jquery level and assign to the respective controls.

Other option may be to use update panel and use the regular server side code to assign to the respective control.


Regards


Sandip

50   50
Dec 03, 2010
So your idea was that I have to have 1 WCF overloaded method one of which works with ASP.NET and another with WinForms?