Hi,
I am trying to map an action with no controller to a specific action, However, I do not want to show the controller in the URL. I have partially achived this using the mapping shown below:
routes.MapRoute(
null,
"Contact",
new { controller = "Home", action = "Contact" });
This successfully maps requests made while on the home controller pages to
http://localhost:8082/Contact However, if the same request is made on a different page handled by a different controller, such as "NotHome" I get a page not found error because the route searched is NotHome/Contact.
Thanks in advance for any help or advise given..