- 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -