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
Asked
Active
Viewed 400 times
2 Answers
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
- 16,560
- 8
- 54
- 90
-
Sorry, these are your options :-) – Ofer Zelig Mar 21 '12 at 10:18
-
I have used jvascript for redirect and setting ?type: – John Lenin Mar 21 '12 at 16:45
-
After that i can get type with asp. So, thank you very much! ) – John Lenin Mar 21 '12 at 16:46
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,394
- 4
- 24
- 42
-
Thank you very much! Issue still persists, but it's a big step forward! – John Lenin Mar 21 '12 at 10:02