.net studio 2005: C# HttpResponse.Filter Property and http commression
Request.Headers[ " Accept-encoding. Here is the complete code. You can put it in you base page, in OnInit or OnLoad methods for example. Request.Headers[ " Accept-encoding. Response.Filter = new. DeflateStream(Response.Filter, CompressionMode.Compress, true. Response.AppendHeader( " Content-encoding. Response.Filter = new. GZipStream(Response.Filter, CompressionMode.Compress, true. Response.AppendHeader( " Content-encoding. Subscribe to: Post Comments (Atom). HTTP Compression on IIS 6 Server.
.net studio 2005: Rewrite urls in asp.net (To make them search engine friendly)
1 Add new library project. 2 Add new class and inherit PageHandlerFactory. That is .net handler that process .aspx files. We will add logic to rewrite pages and then will pass them to original handler. You can add much complex logic here for example transform one url to another with regular expression. PathMaps = new Dictionary. Vicove.VirtualPathDataTable dt = vpta.GetData();. Vicove.VirtualPathRow row in dt). PathMaps.Add(row.VirtualPath, row.RealPath);. Handler = new VicRewriteUrlHandler.