Wrox Programmer Forums
|
ASP.NET 4.5.1 General Discussion For ASP.NET 4.5.1 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5.1 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 4th, 2015, 08:50 PM
Registered User
 
Join Date: Aug 2014
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Web Services

Hi,

I have a web service method, that accepts List<Participant>, where Participant is a complex object with many string or int properties. I have a public property in code behind, which returns List<Participant>. How can i call this web service method in javascript and pass this List<Participant> as parameter?
I have tried this, but it does not work.
Code:
MyWebService.Foo('<%= Property %>', successCallback, errorCallback)
I know i can access code behind properties in javascript with '<%= %>'

I think i have to serialize this List to JSon object or something like that?

Thank you !





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reporting Services - Web Services URL Colm Bear BOOK: Professional Microsoft PowerPivot for Excel and SharePoint 0 February 21st, 2012 11:02 AM
Web Services msherburne84 BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 February 27th, 2010 11:13 AM
Web services hrudanand Apache Tomcat 0 March 27th, 2006 02:08 PM
Web Services fuehrer C# 1 May 2nd, 2005 12:28 PM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.