开发者

pound character(#) in asp.net ajax

开发者 https://www.devze.com 2022-12-16 12:22 出处:网络
iam using asp.net and asp.net-ajax every thing happens on browser urls are of format http://somepage#page1

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 a开发者_运维问答bove 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消