Parse C# to javascript, too big for Json -


i have viewbag diffrent texts in, set textbox. depending on dropdown value choose. have tried passing json doing this: c#

 var jss = new system.web.script.serialization.javascriptserializer();  var val = jss.serialize(viewbag.forbeholddata); 

javascript

var val = '@html.raw(val)'; var obj = $.parsejson(val); 

but getting error when try parse json, because val larger 1500. of know better solution this?

thanks.

has been answered in comment section. had nothing size, error in json syntax. persons taking time help.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -