Last post Aug 25, 2010 03:42 PM by marcinsw
Aug 25, 2010 07:21 AM|sheraz_aries|LINK
Our site uses urlRewriter http module that does the url rewriting for us.
I want to create another http module that will handle our customize URL redirects. Now I want this new customize http module to be call before the UrlRewriter module (to avoid page not found messages the UrlRewriter generates). Is there a way we can contol
the calling order ?
Aug 25, 2010 09:34 AM|marcinsw|LINK
you can control execution order in your web.config. First module defined there will be called first, last - last.
Hope it helps...
Aug 25, 2010 02:51 PM|sheraz_aries|LINK
Thanks for that.
Another quick question, Is it possible to write a module that capture every single link clicked on a website?
Aug 25, 2010 03:42 PM|marcinsw|LINK
It is possible if the link leads to the same site the module runs on. You just listen to BeginRequest event in your module and check Reqest.Url. If you were loking for a way like listning to some magic event raised everytime the link is pressed, then it is
not possible, there is no such event.