Pack QueryString

  • Thread starter Thread starter Axel Dahmen
  • Start date Start date
A

Axel Dahmen

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
 
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
 
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
 
Back
Top