类URLRewriter程序清单中有用到IHttpHandler接口
public void ProcessRequest(HttpContext Context)
    {
        try
        {
            //取得原始URL屏蔽掉参数
            string Url = Context.Request.RawUrl;
            //建立正则表达式
            System.Text.RegularExpressions.Regex Reg = new System.Text.RegularExpressions.Regex
            (@"/Apply/aspx/show-(\d+)-(\d+)\..+", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
            //用正则表达式进行匹配
            System.Text.RegularExpressions.Match m =
                          Reg.Match(Url, Url.LastIndexOf("/"));//从最后一个“/”开始匹配
            if (m.Success)//匹配成功
            {
                String RealPath =
                             @"/Apply/aspx/show.aspx?type=" + m.Groups[1] + "&id=" + m.Groups[2];
                //Context.Response.Write(RealPath);
                //Context.RewritePath(RealPath);//(RewritePath 用在无 Cookie 会话状态中。)
                Context.Server.Execute(RealPath);
            }
            else
            {
                Context.Response.Redirect(Context.Request.Url.ToString());
            }
        }
        catch
        {
            Context.Response.Redirect(Context.Request.Url.ToString());
        }
    }在web.config文件还要添加一下设置项
在<system.web>节点下添加如下代码:
           
 程序代码
<httpHandlers>
     <add verb="*" path="*/show-?*-?*.aspx" type="UrlRewriter" />
</httpHandlers>在页面没反应,不知问题出在那里,我有找了点资料说要在IIS 里进行配置,要如何配置高手帮我指点下。