Click here to Skip to main content
15,909,530 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Could you please use this link to see my question.
http://stackoverflow.com/questions/31244814/404-error-while-url-routing[^]

Thanks in advance
Posted
Comments
Sreekanth Mothukuru 17-Jul-15 10:03am    
You need to get the url right using following snippet.

@Action.Url("action", "controller", {userid: 18})
Libin C Jacob 20-Jul-15 2:43am    
Hi, Thanks for your reply. Actually I am trying to implement routing in asp.net web forms not in MVC. So I can't get @Action.Url in web forms. Is there any other solution?
Sreekanth Mothukuru 20-Jul-15 2:51am    
Have you tried Server.MapPath instead ?!

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