Adding new routes dynamically

Posted by Jpchoudhari under ASP.NET on 6/19/2012 | Points: 10 | Views : 1325 | Status : [Member] | Replies : 1

I am developing a site where i am usgin Routing insted of Re-Writing.

I have added routes like below for all my pages.

ex for home page RouteTable.Routes.MapPageRoute("HomePage", "Home", "~/Home.aspx");
for about us RouteTable.Routes.MapPageRoute("AboutUs", "AboutUs", "~/Aboutus.aspx");

1) Is this a correct way to use routing to simplyfy URLs??
2) How I can add new routes for the pages created dynamically??
For eg : I have given a option to admin to add new pages (physically) from backend and now he should able to give a SEO friendly URL. How to do this??

Kind Regards,


Posted by: Santhiram on: 6/20/2012 [Member] Starter | Points: 25

See the below link..very detailed example about Url Routing..

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response