Visual Basic .NET » ASP.NET General Discussion
Where I can find a complete example about defining and using custom converters? -- eLad --


There's something at the starter kit Download @
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxProStarterKit 


Actually it's a class which inherits IJavaScriptConverter and overrides methods such as GetClientScript, Deserialize, Serialize.
GetClientScript defines the js function, parameters and client methods Deserialize gets IJavaScriptObject and converts its properties to a class instance Serialize returns a string which defines 'new Instance(parameters...)'

And you need to add the converter to the web.config.

You'll find it all in the Starter Kit. Search the code for MyAjaxClassConverter.cs.

[Submit Comment]Home