Passing Complex Data Types in ASP.NET Ajax | 4 | WebReference

Passing Complex Data Types in ASP.NET Ajax | 4


[prev]

Register the Web Service and Scripts

Next, we need to use a ScriptManager control to register the Web service and the scripts we will use. You can then use JavaScript to call the Web method that returns the necessary data for the Customer class we created earlier.

The OnSucceeded and OnFailed methods would be called on the success or failure (respectively) of the Web method call.

Suggested Readings

Here are two good links for further study on this topic:

Summary

That's it. Now you know how to pass complex data types using ASP.NET Ajax. Happy coding!



Original: December 29, 2010


[prev]