views:

41

answers:

1

i want have mvc actions plus file extension like /Home/Index.aspx which route to Index action of Home Controller. can everybody help me. have everybody any opinion or guideline?

+3  A: 
routes.MapRoute(
                "RouteName",                                              // Route name
                "{controller}/{action}.aspx",                           // URL with parameters
                new { controller = "Home", action = "Index"}  // Parameter defaults
            );

Can you not do this

Israfel
Html.ActionLink can't render links URL like your code. anybody have any specially implemented of extension method like ActionLink to do this correctly?
Sadegh