Author: robrichard | Posted on: 11/20/2009 1:16:10 PM | Views : 371

This seemed easier than it has turned out...
I have a javascript object that I assign values to and want to pass that object to a C# webservice.  What is the proper definition for the webservice in my "wsOpportunityService.asmx.cs" file so that is can accept the object and get the properties?  The javascript code is included:
 
var opportunity = { OpportunityID: null, CustomerName: null, CurrencyID: null, PotentialValue: null, ExpectedCloseMonth: null, ExpectedCloseYear: null, OpportunityTypeID: null, OpportunityProbabilityID: null, ActionNote: null, create: function() { var obj = new Object(); obj.OpportunityID = ""; obj.CustomerName = ...

Go to the complete details ...