重写配置:引用重写dll文件
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <configSections>
        <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <!-- url rewriter规则-->
    <!-- 省份查询匹配-->
    <RewriterConfig>
        <Rules>
            <RewriterRule>
                <LookFor>~/hotel/([a-zA-Z]{4,16})-([a-zA-Z]{4,16})\.aspx</LookFor>
                <SendTo>~/hotel/search.aspx?proname=$1&amp;cityname=$2</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/hotel/([a-zA-Z]{4,16})\.aspx</LookFor>
                <SendTo>~/hotel/search.aspx?proname=$1</SendTo>
            </RewriterRule>
        </Rules>
    </RewriterConfig>
    <!-- url rewriter规则 结束-->
    <connectionStrings>  </connectionStrings>
    <system.web>
        <authentication mode="Forms">
            <forms loginUrl="~/Login.aspx" timeout="20" name=".ASPXSYSTEM"/>
        </authentication>
        <customErrors defaultRedirect="~/Clineerror.html">
            <error statusCode="404" redirect="~/Clineerror.html"/>
        </customErrors>
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </controls>
        </pages>
        <!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
        <compilation debug="true">
            <assemblies>
            <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
        <httpModules>
            <!-- url重写-->
            <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
            <!-- url 重写结束-->
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </httpModules>
    </system.web>
    <location path="user">
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
            <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
    </system.webServer>
    <location allowOverride="true" inheritInChildApplications="true">
        <appSettings>
            <add key="Manager" value="admin"/>
        </appSettings>
    </location>
</configuration>

解决方案 »

  1.   

    又抢分了
    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
        <configSections>
            <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    </sectionGroup>
                </sectionGroup>
            </sectionGroup>
        </configSections>
        <!-- url rewriter规则-->
        <!-- 省份查询匹配-->
        <RewriterConfig>
            <Rules>
                <RewriterRule>
                    <LookFor>~/hotel/([a-zA-Z]{4,16})-([a-zA-Z]{4,16})\.aspx</LookFor>
                    <SendTo>~/hotel/search.aspx?proname=$1&amp;cityname=$2</SendTo>
                </RewriterRule>
                <RewriterRule>
                    <LookFor>~/hotel/([a-zA-Z]{4,16})\.aspx</LookFor>
                    <SendTo>~/hotel/search.aspx?proname=$1</SendTo>
                </RewriterRule>
            </Rules>
        </RewriterConfig>
        <!-- url rewriter规则 结束-->
        <connectionStrings>  </connectionStrings>
        <system.web>
            <authentication mode="Forms">
                <forms loginUrl="~/Login.aspx" timeout="20" name=".ASPXSYSTEM"/>
            </authentication>
            <customErrors defaultRedirect="~/Clineerror.html">
                <error statusCode="404" redirect="~/Clineerror.html"/>
            </customErrors>
            <pages>
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                </controls>
            </pages>
            <!--
              Set compilation debug="true" to insert debugging
              symbols into the compiled page. Because this
              affects performance, set this value to true only
              during development.
        -->
            <compilation debug="true">
                <assemblies>
                <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
            <httpModules>
                <!-- url重写-->
                <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
                <!-- url 重写结束-->
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </httpModules>
        </system.web>
        <location path="user">
            <system.web>
                <authorization>
                    <deny users="?"/>
                </authorization>
            </system.web>
        </location>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </modules>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </handlers>
        </system.webServer>
        <location allowOverride="true" inheritInChildApplications="true">
            <appSettings>
                <add key="Manager" value="admin"/>
            </appSettings>
        </location>
    </configuration>
      

  2.   

    楼上的大侠都在干啥那?人家问如何动态生成gif?
    这个东西写一次代码多点给你找个网址不好意识、看懂就看你自己的能力了。http://www.dotnet247.com/247reference/msgs/28/140380.aspx至于如何在图上写字就是另一个问题了1、你要知道如何自己做一个静态的图然后写上字
    2、结合上面的网址就可以生成了20 楼后如何还没人回答发邮件[email protected],有时间的话我给你写
      

  3.   

    也就是生成验证码那样了,看看gdi
      

  4.   

    我说20楼这么早就给我发邮件。这东西写出来代码太多了这些天项目紧没时间处理啊
    要是现在有现成的就给你发了 呵呵!gif 格式分为好多祯 每祯还有间隔时间上边加字的那种
      要把每祯取出来画上字在重新组合那种闪烁的字、就完全需要自己做出每一祯了那种静态的比如几个向日葵的最简单了、就是在底图上绘制图像20 楼后如何还没人回答发邮件[email protected],有时间的话我给你写。
      

  5.   

    GDI+本身对GIF没什么支持,你需要读写GIF的话就通过第三方库吧,或者你自己去研究GIF然后按其格式写就是了,GIF的格式也不算复杂。
      

  6.   

    在哪能拿到支持GIF的第三方库?
      

  7.   

    这里有
    http://www.cnblogs.com/caca/archive/2006/06/24/434825.html