In my WCF based project i tried to bind my deserialized json data into my seperate labels.I implemented some of the stackoverflow answers.But still i didnt get the output. here is my c# code:
string k = TxtId.Text;
byte[] datas = web.DownloadData("http://localhost:53274/Service1.svc/GetData?value=" + k);
Stream stream = new MemoryStream(datas);
DataContractJsonSerializer obj = new DataContractJsonSerializer(typeof(string));
string result = obj.ReadObject(stream).ToString();
var u = JsonConvert.DeserializeObject(result);
After deserialization i am getting the value of u is:
{ "Table": [ { "ICDCode": "A03.9", "ICDCodeDescription": "Shigellosis, unspecified", "ICDGroupCode": "A03", "ICDGroupDescription": "Shigellosis" } ] }
I want to bind these json object into seperate labels like
lblcode.Text =
lblcodedesc.Text =
lblgrpcode.Text =
lblgrpdesc.Text =
Can anyone help me..