查询字符串参数在返回URL中丢失 [英] Querystring parameter lost in return url

查看:98
本文介绍了查询字符串参数在返回URL中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户尝试使用querystring参数访问受限制的页面时

例如myaccount.aspx?sid = 3&page = 2

并且未经身份验证,用户将被重定向到login.aspx页面.

问题是querystirng(sid = 3&page = 2)将丢失.

returnURL将类似于"login.aspx?returnurl = myaccount.aspx".有什么解决办法吗?

when user tries to access a restricted page with a querystring parameter

eg myaccount.aspx?sid=3&page=2

and is not authenticated, user will be redirected to login.aspx page.

the problem is that the querystirng (sid=3&page=2) will be lost .

the returnURL will be like "login.aspx?returnurl=myaccount.aspx". is there any solution for that? thanks.

推荐答案

http://forums.asp .net/p/1345257/2733847.aspx [ ^ ]

http://www.pcreview.co.uk/forums/formsauthentication-redirectfromloginpage- no-returnurl-t1288957.html [ ^ ]

如果我误解了您的问题,请随时纠正我.希望以上信息对您有所帮助.如果您有更多疑问,请告诉我.
http://forums.asp.net/p/1345257/2733847.aspx[^]

http://www.pcreview.co.uk/forums/formsauthentication-redirectfromloginpage-no-returnurl-t1288957.html[^]

If i misunderstand your question, please feel free to correct me.I hope the above information will be helpful.If you have more concerns, please let me know.


您可以存储QueryString值在会话中,并在将用户重定向到页面时检索这些内容.
You can store your QueryString values in a session and retrieve those when you are redirecting the user to the page.


您可以执行Tarakeshwar Reddy所说的.您可以将其存储在会话中.
You can do what Tarakeshwar Reddy says. You can store it in session .


这篇关于查询字符串参数在返回URL中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆