UrlRewriting - How should i do

url , csharp , sql Stockholm, Sweden
  • 12 years ago
    Hello. How should i write a UrlRewrite class to rewrite like: ~/Page.aspx?id=2&l=en to ~/Page_{id}_{l}.aspx or ~/Page/{l}_{id}.aspx Or use sql to get out the title of the request id and rewrite it to ~/{title}.aspx I have search of google but not found any good way, and i don't want to have so mutch code in web.config with url, just in the C# class.
  • 12 years ago
    Try this http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”