troubleshooting Question

using links anchors in global.asax registerroutes

Avatar of scm0sml
scm0sml asked on
Web Languages and StandardsProgrammingC#ASP.NETVisual Basic.NET
5 Comments2 Solutions783 ViewsLast Modified:

I have the following on one of my pages:
<h1 id="privacy">PRIVACY POLICY</h1>

In my global.asax I then have:
 public static void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        routes.MapPageRoute("Privacy", "PrivacyPolicy", "~/Terms.aspx#privacy");        

But when I try doing its saying:
Terms.aspx#privacy' does not exist

However if I put it into the browser directly it works fine.

Any ideas?

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros