2

I have URL like - www.mysite.aspx#type and HttpContext.Current.Request.Url returns just path without # and text after #, just www.mysite.aspx... Maybe someone have solution? I need this #type to return. Thanks

John Lenin
  • 51
  • 2
  • 4

2 Answers2

3

You can't get the part after the hash (#). It's on the brower's scope.

You can however get around this by notifying the server from the client what is the full URL. See here: How to get Url Hash (#) from server side

Community
  • 1
  • 1
Ofer Zelig
  • 17,068
  • 9
  • 59
  • 93
0

The part after # (called Fragment Identifier) is never sent to the server by the browser so you can't receive it in asp which is a server side technology.

nobody
  • 10,599
  • 4
  • 26
  • 43