Click here to Skip to main content
15,937,429 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
In my current application is in mvc 4 and i have added some existing aspx in it.
in route.config i have done something like
public static void RegisterRoutes(RouteCollection routes)
            routes.MapPageRoute("", "Detail By Status", "~/Views/UserCallDetail/StatusDetail.aspx", true);
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }

the problem is now when i am clicking on any link it redirects to StatusDetail.aspx page what is i really haven't idea what is wrong in it ca someone help...
thanks in advance.

1 solution

You have to use something like below (just a sample):


For more info check this:[^]

I hope this will help to you.
Share this answer

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