Pack QueryString

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Axel Dahmen

    Pack QueryString

    I've got a (probably) long list of data which I want to send to an ASPX page by query string. To keep the URL short and compact I want to compress the data before I put it into the query string. The target page is supposed to unpack the data again.

    I'm thinking about a technique similar to the one ViewState uses, only for query strings.

    Is there any class available in the .NET framework compressing and unpacking string data?

    TIA,
    Axel Dahmen

  • Natty Gur

    #2
    Re: Pack QueryString

    Axel Hi,

    1) You can always send the data via Post. The data will be embedded in
    the request and you will be free from the query string limitation.

    2) .Net don’t have any compressing and unpacking string utility but A)
    LosFormatter is the class that responsible of compressing and unpacking
    view state. B) Check out #ZipLib[1]. This is an open source that does
    that job. I’m using it without any problems.

    [1]http://www.icsharpcode .net/OpenSource/SharpZipLib/Default.aspx

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    • Axel Dahmen

      #3
      Re: Pack QueryString

      Thanks, Natty, I'll check out your sources! Regarding your suggestion to post: I can't use post because I want to provide my parameters in hyperlinks.

      Best wishes,
      Axel Dahmen

      ---------------------
      "Natty Gur" <natty@dao2com. com> schrieb im Newsbeitrag news:ODuBT0ePDH A.1584@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Axel Hi,
      >
      > 1) You can always send the data via Post. The data will be embedded in
      > the request and you will be free from the query string limitation.
      >
      > 2) .Net don't have any compressing and unpacking string utility but A)
      > LosFormatter is the class that responsible of compressing and unpacking
      > view state. B) Check out #ZipLib[1]. This is an open source that does
      > that job. I'm using it without any problems.
      >
      > [1]http://www.icsharpcode .net/OpenSource/SharpZipLib/Default.aspx
      >
      > Natty Gur, CTO[/color]


      Comment

      Working...