Calling WCF using JQuery
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!
Rinat Mergenbaev, Nov 14, 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?
Rinat Mergenbaev, Dec 03, 2010
Thanks Robert for your insights! Very helpful indeed.
Sep 01, 2010
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.
Sandip Nandi, Nov 23, 2010