Click here to Skip to main content
15,920,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to use my custom url like www.domainname/contoller/anyvalue/anyvalue1/anyvalue2
I don't want to specify my action name in url.
How I can achieve this by using register route or any other solution?
Posted

1 solution

Google "mvc custom routes" and you'll find tutorials on how to do this.

http://www.asp.net/mvc/overview/older-versions-1/controllers-and-routing/creating-custom-routes-cs[^]
 
Share this answer
 
Comments
[no name] 11-Dec-15 5:44am    
Thanks for quick reply.

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