• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-26
  • 语言: C#
  • 标签: NET  C#  页面压缩  输出  

资源简介

当用户访问某页面时,常需返回大量数据,造成网络延迟,本方法可以把页面数据压缩后再回传,加快网页访问速度,提升性能。

资源截图

代码片段和文件信息

#region 注释
/******************************注释*****************************
 * this class is created by jillzhang at 06/9/28 21:00
 * this class is a config class
 * you can user it to read or write data to config file
 * when you user it commercialplease note the 
 * author is jillzhang
 * ************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Configuration;
using System.xml;

namespace Jillzhang.HttpCompressor
{
    public class Configuration : ConfigurationSection
    {
        /// 
        /// 获得压缩类型
        /// 

        /// The type of the compression.
        [ConfigurationProperty(“compressionType“ IsRequired = false)]
        public CompressionType CompressionType
        {
            get
            {
                { return (base[“compressionType“] == null) ? CompressionType.None : (CompressionType

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2006-09-28 21:27  TestPageCompress\App_Data

     文件      20480  2006-09-28 21:55  TestPageCompress\Bin\HttpCompressor.dll

     文件        154  2006-09-28 21:56  TestPageCompress\Bin\HttpCompressor.dll.refresh

     文件      22016  2006-09-28 21:55  TestPageCompress\Bin\HttpCompressor.pdb

     目录          0  2006-09-28 21:56  TestPageCompress\Bin

     文件        445  2005-12-13 16:58  TestPageCompress\Default.aspx

     文件        591  2006-09-28 22:07  TestPageCompress\Default.aspx.cs

     文件        822  2006-09-28 21:54  TestPageCompress\Web.config

     目录          0  2006-09-28 22:07  TestPageCompress

     文件      20480  2006-09-28 21:51  HttpCompressor\HttpCompressor\bin\Debug\HttpCompressor.dll

     文件      26112  2006-09-28 21:51  HttpCompressor\HttpCompressor\bin\Debug\HttpCompressor.pdb

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\bin\Debug

     文件      20480  2006-09-28 21:55  HttpCompressor\HttpCompressor\bin\Release\HttpCompressor.dll

     文件      22016  2006-09-28 21:55  HttpCompressor\HttpCompressor\bin\Release\HttpCompressor.pdb

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\bin\Release

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\bin

     文件       6315  2006-09-28 21:49  HttpCompressor\HttpCompressor\Configuration.cs

     文件        272  2006-09-28 21:51  HttpCompressor\HttpCompressor\Enums.cs

     文件       2139  2006-09-28 21:31  HttpCompressor\HttpCompressor\HttpCompressor.csproj

     文件       3918  2006-09-28 21:50  HttpCompressor\HttpCompressor\HttpModule.cs

     文件      20480  2006-09-28 21:51  HttpCompressor\HttpCompressor\obj\Debug\HttpCompressor.dll

     文件      26112  2006-09-28 21:51  HttpCompressor\HttpCompressor\obj\Debug\HttpCompressor.pdb

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\obj\Debug\TempPE

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\obj\Debug

     文件        334  2006-09-28 21:55  HttpCompressor\HttpCompressor\obj\HttpCompressor.csproj.FileList.txt

     文件      20480  2006-09-28 21:55  HttpCompressor\HttpCompressor\obj\Release\HttpCompressor.dll

     文件      22016  2006-09-28 21:55  HttpCompressor\HttpCompressor\obj\Release\HttpCompressor.pdb

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\obj\Release\TempPE

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\obj\Release

     目录          0  2006-09-29 00:43  HttpCompressor\HttpCompressor\obj

............此处省略9个文件信息

评论

共有 条评论