- Where Developers Learn, Share, & Build Careers
I use the System.Web.Script.Serialization library to encode elements from C #. How can I interpret it from the JS function? For example:
JavaScriptSerializer js = new JavaScriptSerializer (); String model string = js Cyrilize (model); and want to do JS:
var element = decode ('@ ModelString');
You have to use jQuery.
var _Model = $ parseJSON (ModelString); Then you can use it:
_Model.Name; _Model.Address; // etc ... I hope you want it ...
Comments
Post a Comment