1. #1
    Sencha User feva's Avatar
    Join Date
    Aug 2008
    Posts
    18
    Answers
    1
    Vote Rating
    0
    feva is on a distinguished road

      0  

    Question Answered: Ext.grid.Panel

    Answered: Ext.grid.Panel


    I'm sorry, my English is poor.
    When I saving data to server, I have a question:
    I DEV. with ASP, not ASP.NET.

    I had find JSON.org

    ASP:I wanna :

    Response.Write(Request), But It's Wrong. The request data is gibberish.

    The charset is utf-8.
    Option Explicit
    Server.ScriptTimeOut = 999
    Response.Buffer = True
    'Response.ContentType = "text/html"
    Response.ContentType = "text/json"
    Response.CodePage = 65001
    Response.CharSet = "utf-8"
    Session.CodePage = 65001
    Session.LCID = 2052'Chinsese


    If action = "update" Then
    Response.Write Request.BinaryRead(Request.TotalBytes)
    Response.Flush
    Response.End
    End If

    My mean: Just like xmlHttp.load(Request)
    Feva

  2. Ext is correct.

    First step:
    Convert a binary data (BinaryRead) to a string by ASP

    http://www.motobit.com/tips/detpg_binarytostring/

    Then derialize it to ASP Object, in order to ASP read it.

    Parse JOSN to Object
    http://www.oschina.net/code/snippet_102826_1331?from=rss


  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    I don't believe this question has anything to do with ExtJS.

  4. #3
    Sencha User feva's Avatar
    Join Date
    Aug 2008
    Posts
    18
    Answers
    1
    Vote Rating
    0
    feva is on a distinguished road

      0  

    Default


    help

    Ext.grid.Panel:


    proxy: {
    type: 'ajax',
    method: 'POST',
    headers: { 'Content-Type': 'application/json; charset=utf-8'},
    api: {
    read: 'data/admin.asp?action=read',
    update: 'data/admin.asp?action=update'
    },
    reader: {
    type: 'json',
    root: 'admin',
    totalProperty: 'totalCount',
    successProperty: 'success'
    }
    }

    响应头信息原始头信息
    Date Mon, 24 Oct 2011 17:20:29 GMT
    Server Microsoft-IIS/6.0
    X-Powered-By ASP.NET
    Content-Length 81
    Content-Type application/json; Charset=utf-8
    Cache-Control private

    请求头信息原始头信息
    Host localhost
    User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language zh-cn,zh;q=0.5
    Accept-Encoding gzip,deflate
    Accept-Charset GB2312,utf-8;q=0.7,*;q=0.7
    Keep-Alive 115
    Connection keep-alive
    Content-Type application/json; charset=utf-8
    X-Requested-With XMLHttpRequest
    Referer http://localhost/WebManager/admin.html
    Content-Length 54
    Cookie ASPSESSIONIDASCBBTRA=KHMPPILCANIBDCFKIAPAFCJL
    Pragma no-cache
    Cache-Control no-cache
    Feva

  5. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Please use CODE tags when posting code (# button on the editor toolbar).

    Use Firebug to check the POST body. Does it appear to be correct that point?

  6. #5
    Sencha User feva's Avatar
    Join Date
    Aug 2008
    Posts
    18
    Answers
    1
    Vote Rating
    0
    feva is on a distinguished road

      0  

    Default


    Ext is correct.

    First step:
    Convert a binary data (BinaryRead) to a string by ASP

    http://www.motobit.com/tips/detpg_binarytostring/

    Then derialize it to ASP Object, in order to ASP read it.

    Parse JOSN to Object
    http://www.oschina.net/code/snippet_102826_1331?from=rss

    Feva

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi