I simply wants to route a URL which is not in the MVC project. Like
http://mysite.com/Parents/default.aspx?ID=xxx
TO
http://mysite.com/accounts/login
with the ID
I think something like this would work.
routes.MapRoute(
name: "Default",
url: "Parents/default.aspx?ID={id}",
defaults: new { controller = "Accounts", action = "Login", id = UrlParameter.Optional }
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With