Apr 19, 2011, 4:14 PM
Get json in codebehind.
Hi,
I have the control <ext:Store> on the page markup.
I want to access that json in codebehind in text format.
Here is what I have:
Thanks
I have the control <ext:Store> on the page markup.
I want to access that json in codebehind in text format.
Here is what I have:
<ext:Store ID="StoreDocumentoID" runat="server" AutoLoad="false" OnRefreshData="DocumentosRefresh">
<Proxy>
<ext:HttpProxy Json="true" Method="GET" Url ="http://localhost:8000/Documentos?$format=json"/>
</Proxy>
<Reader>
<ext:JsonReader Root="d.results" IDProperty="id" >
<Fields>
<ext:RecordField Name="id" Mapping="id" />
<ext:RecordField Name="nome" Mapping="nome" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
protected void ParserJsonTipoDocumento()
{
var json = storeTipoDocumento... ???
//JObject o = JObject.Parse(json);
}
Anyone could understand my question?Thanks
Last edited by luiz; Apr 19, 2011 at 6:37 PM.