سؤال

We are currently using URL rewrites to replace images and links. But we would like to replace some text contained within a tag. Has anyone achieved this before?

I did try to add a custom tag

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

But wasn't sure what to add as the attribute if its just the text?

هل كانت مفيدة؟

المحلول

You cannot, as IIS URL Rewrite is only designed for URL rewrite.

If you do want to post-process requests, write a HttpModule or IIS module, and hook to the relevant events,

http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top