Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi,

I implemented a urlrewriting using Microsoft urlrewriter module. And it will create a rewrite& tag in config file.
My question is how i get that rewrite module in aspx.cs page button click.

My requirement is, I want to send a mail while doing an event. In that mail i also provide a url for the user for further process. The url should be in rewrite mode and the rewrite should be according to the rewrite rule i did in the webconfig file.

Please give a solution for this.

Thanks in advance.
Posted
Updated 1-Feb-11 0:50am
v2

1 solution

UrlRewriter is an HTTPModule, there is nothing you can call from within your code to use it. You may be able to use Reflector (if it is a .net assembly) to see how it is constructing the url and using the configuration settings, then replicate the functionality.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900