Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 更改<;内文本的IIS出站规则;span>;_Asp.net_.net_Iis_Url Rewrite Module_Arr - Fatal编程技术网

Asp.net 更改<;内文本的IIS出站规则;span>;

Asp.net 更改<;内文本的IIS出站规则;span>;,asp.net,.net,iis,url-rewrite-module,arr,Asp.net,.net,Iis,Url Rewrite Module,Arr,我们目前正在使用URL重写来替换图像和链接。但我们希望替换标记中包含的一些文本。以前有人做到过吗 我确实尝试添加一个自定义标记 <customTags> <tags name="span"> <tag name="span" attribute="" /> </tags> </customTa

我们目前正在使用URL重写来替换图像和链接。但我们希望替换标记中包含的一些文本。以前有人做到过吗

我确实尝试添加一个自定义标记

            <customTags>
                <tags name="span">
                    <tag name="span" attribute="" />
                </tags>
            </customTags>


但是,如果只是文本,则不确定添加什么作为属性?

您不能,因为IIS URL重写只是为URL重写而设计的

如果确实要发布处理请求,请编写HttpModule或IIS模块,并挂接到相关事件