Is it possible to compress a web page on the client-side prior to its postback to the server? We are using IE6 and our web page sizes are rather substantial. Our end-users in the field use dial-up a great deal and so while we can download quickly via compression,
we cannot postback quickly due to the web page not being compressed on the postback.
Yes, but there is nothing built in to do this If the clients have the .Net framework which can be detected then you can have an assembly automatically download for doing the compression. Failing that you'd have to do the compression in JavaScript (ouch! ...
but best for compatibility) or use an ActiveX component. On the server, you will need to decompress the request stream as it arrives.
Is there a way to intercept and compress the postback data before it is sent to the server? What about setting the content type of the postback data? I assume one solution would be to have javascript that runs just before a form is submitted. The javascript
would loop through all of the form variables and somehow compress their values. Then, on the server side, use a Request.Filter to decrypt the data before asp.net looks at the __VIEWSTATE form variable.
ddarling
Member
10 Points
2 Posts
Compressing web page on client prior to postback to server
Aug 28, 2003 09:19 PM|LINK
intesoft
Member
561 Points
114 Posts
Re: Compressing web page on client prior to postback to server
Sep 05, 2003 07:42 AM|LINK
ASPAccelerator.NET - Fewer bytes, faster pages
ASPRedirector.NET - Put friendly URLs on your site
cbabineaux
Member
5 Points
1 Post
Re: Compressing web page on client prior to postback to server
Sep 05, 2003 07:28 PM|LINK