tags:

views:

163

answers:

1

iam using asp.net and asp.net-ajax every thing happens on browser urls are of format

http://somepage#page1
http://somepage#page2
http://somepage#page3

now all these urls are in a secured folder when logged in user directly types (or use bookmark) a url like below, he is shown that page

http://somepage#page2   -- (bookmarked url lying in secured folder)

now when a user user who is not logged in directly type above url he gets redirected to login page but on login page in redirection url iam unable to read characters after pound (#) sign. iam just getting redirection url= "http://somepage" while i want it to be "http://somepage#page2" is there is any way i can do this

A: 

Everything after the "#" sign in a URL is never sent to the server so you won't be able to read the value from your ASPX page.

Eilon
Praveen Prasad
They might have some JavaScript that saves it in a cookie or sets it in a query string as some encoded value. Run an HTTP trace tool like Fiddler to see how Facebook is having it sent to the server.
Eilon

related questions