Back to list
Views:   12.4K
Replies:  2

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!
Rinat Mergenbaev, Nov 14, 2010
Reply 1
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
Reply 2
 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
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.