Friday, May 25, 2007

Rewriting URLs in .NET

Rewriting URLs is great for hiding parameters passed in the querystring, or having a link go to different places depending on some result.

In the web.config file there needs to be the following in <system.web>:




Of course the default.aspx would be where you want to go. The URL in the address bar of the browser doesn't change, so whatever you send RewritePath won't be seen by the user.

0 Comments:

Post a Comment

<< Home