Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Javascript objects to .Net WebMethods expecting type Object

Posted: Feb/20/2010   By: pankaj   Points:15   Category: Java Script/ VB Script  - javascript    Views:195   Vote Up (0)   Vote Down (0)    
This article shows how to pass a javascript object to a .NET webservice that expects a parameter of type object. JSON is an enormously powerful and lightweight way to send data to and from a webservice, however if there are a number of parameters that are needed to be sent to webservice, building a JSON string can be a pain, and having to set your webmethod to expect a matching number of parameters can equally be as painful. This article shows how to build and pass a javascript object "Customer" and pass it to a .NET webservice webmethod that is expecting an object of type "Customer".

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

JavaScript Objects

  
Object oriented Programming in an important aspect of JavaScript. It is possible to use built-in objects available in JavaScript. It is also possible for a JavaScript programmer to define his own objects and variable types. In this JavaScript tutorial, you will learn how to make use of built-in objects available in JavaScript

JavaScript String Object

  
In this JavaScript tutorial, you will learn about String Object, purpose of string object in JavaScript, purpose of string object, indexof method, lastIndexOf method and substring method along with syntax and example

JavaScript Date Object

  
In this JavaScript tutorial, you will learn about date object and methods of date object explained along with syntax and example.

JavaScript Math Object

  
In this JavaScript tutorial, you will learn about Math Object, usage, properties and methods of math object along with syntax and examples.

JavaScript Windows Object Properties Part II

  
In this JavaScript tutorial, you will learn about screenX, screenY, screenLeft and screenTop, top, length, frames, opener, parent and window property of Window object along with syntax and examples.

JavaScript Windows Object Properties Part I

  
In this JavaScript tutorial, you will learn about Windows Object properties namely personalbar, statusbar, scrollbar, toolbar property of Window object, pageXOffset, pageYOffset, innerwidth, innerheight, outerwidth and outerheight.

JavaScript Window Object Timeout Methods

  
In this JavaScript tutorial, you will learn about setTimeout(), clearTimeout() and open() methods of window object along with syntax, usage and examples for each method.

JavaScript Document Object Methods Part II

  
In this JavaScript tutorial, you will learn about document object methods - getElementsByTagName, getSelection, handleEvent, releaseEvents, routeEvent, write, writeln along with syntax, examples and brief explanation.

JavaScript Document Object Methods Part I

  
In this JavaScript tutorial, you will learn about methods of document object along with syntax and examples. This section covers captureEvents, open, close, getElementById, getElementsByName methods with explanations for each method.

JavaScript History Object Properties and Methods

  
In this JavaScript tutorial, you will learn about history object properties and methods, length, current, next, previous properties, back(), forward() and go() methods along with syntax and examples.
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge