简体   繁体   English

检查页面加载是否使用Response.Redirect重定向了页面

[英]Check on page load if the page was Redirected using Response.Redirect or not

I want to know whether or not the client got to the page he is now (for example "sign_up.aspx") using Response.Redirect or not. 我想知道客户端是否使用Response.Redirect到达了他现在所在的页面(例如“ sign_up.aspx”)。 is it possible? 可能吗?

You could just add a URL parameter in the redirect, then parse that on the client using JavaScript. 您可以在重定向中添加一个URL参数,然后使用JavaScript在客户端上解析该参数。

eg sign_up.aspx?source=from 例如sign_up.aspx?source=from

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM