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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -