hi i creating json object in the page load in the code behind
how to assing this json object to javascript
json object.
this is javasctipt create json object
var dynmFields = { "Fields": [], "Texts": [] };
and this is in code behind create json obect and Serialize
Dim js As New JavaScriptSerializer
Dim strFields As String = js.Serialize(index_Datas)
Dim strTexts As String = js.Serialize(text_Datas)
Dim jsonString As String = "{ ""Fields"": " & strFields & ", ""Texts"": " & strTexts & " }"
jsonStringHidden.Value = jsonString
this is in javascript assing hidden field jsongStringHidden to json variable
dynmFields = $("#jsonStringHidden").val();
but after i assing the hid ...
Go to the complete details ...