I am using .Net Framework 4.5 and MVC4 with Entity Framework.
I currently have the following code in my RouteConfig.cs:
routes.MapRoute(
name: "Jobs",
url: "job_openings.aspx",
defaults: new { controller = "AboutUs", action = "Index", id = UrlParameter.Optional }
);
But we now have a page anchor in the About Us page. When a user types in /job_openings.aspx, I want them to be taken right down to that anchor. Does anyone know how to do that?
I've tried doing a MapPageRoute, but that doesn't seem to work:
routes.MapPageRoute("Jobs", "job_opening.aspx", "~/AboutUs#News");
This is the URL I am trying to get to: ~/AboutUs#News from this one: job_opening.aspx
Is this possible?