在asp.net/C#请求源 [英] Source of request in asp.net/C#

查看:203
本文介绍了在asp.net/C#请求源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我需要知道的答案,在asp.net/C#这样一个问题:结果
请求结果源
我想我的网页知道哪个页面引导用户这个特定页面之一。我试图通过智能感知在几个不同的页面属性去,但无法找到它。任何帮助吗?

Basically, I need to know the answer to this question in asp.net/C#:
source of REQUEST
I would like one of my pages to know which page directed the user to this specific page. I've tried going through intellisense on a few different Page properties, but couldn't find it. Any help?

推荐答案

听起来像是你想找的 Request.UrlReferrer

文件: Htt$p$pquest.UrlReferrer

请求可以实现关闭该页面:

The request can be attained off the page:

Page.Request

如果一个页面实例不可用,则可以使用从当前上下文得到它:

If a Page instance is not available, you can get it from the current context using:

HttpContext.Current.Request

这篇关于在asp.net/C#请求源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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