Get json in codebehind.

  1. #1

    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:

    <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.

Similar Threads

  1. [CLOSED] Json 4.0
    By majunior in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 24, 2011, 6:32 PM
  2. How to select row by JSon...
    By rebulanyum in forum 1.x Help
    Replies: 0
    Last Post: Mar 03, 2010, 5:29 AM
  3. [CLOSED] JSON
    By Zarzand in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 13, 2009, 9:49 AM
  4. [CLOSED] Json.NET
    By Ben in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 18, 2009, 3:12 PM
  5. JSON or document.get... ?
    By flaviodamaia in forum Open Discussions
    Replies: 1
    Last Post: Sep 03, 2008, 4:07 PM

Tags for this Thread

Posting Permissions