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>:
// make some decisions here about where to go context.RewritePath(applicationPath + "/default.aspx"); } }
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.
In the web.config file there needs to be the following in <system.web>:
// make some decisions here about where to go context.RewritePath(applicationPath + "/default.aspx"); } }
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