Click here to Skip to main content
15,032,967 members
Please Sign up or sign in to vote.
1.57/5 (3 votes)
See more:
hello,

how can i URL rewrite from database based column value? e.g.my URL is

http://localhost:50685/CMS/Default2.aspx?id=4

and its should be show as

http://localhost:50685/CMS/foodapple.aspx

foodapple comes from database as per id 4 and if id change URL also change.
Posted
Updated 8-Oct-13 2:42am
v2

1 solution

In ASP.NET 4.0 URL Routing is fully integrated and so straightforward and powerful to use it should be preferred over URL Rewriting whenever possible.

For more info check this:

ASP.NET 4.0 URL Routing Tutorial

I hope this will help to you.
   

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