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
Post a Comment