如何通过asp.net C#获取重定向URL [英] How to get the redirecting url by asp.net C#

查看:67
本文介绍了如何通过asp.net C#获取重定向URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我站在abc.com上,我的xyz.com网站上有一个链接。因此,每当用户点击xyz.com时,它将显示他/她已请求该网址...

我如何通过c#在asp.net中执行此操作

Suppose i am standing on abc.com and there is a link on my site of xyz.com. so whenever user click on the xyz.com it will show that he/she has requested for that url...
how can i do this by c# in asp.net

推荐答案

使用此

Use This
String RequestedPage = Request.PhysicalPath.Replace(Request.PhysicalApplicationPath, "");





可能会有所帮助。我在Web应用程序中使用它来提高页面安全性。



Might Be Helpful. I Used It For Page Wise Security In My Web Application.


这篇关于如何通过asp.net C#获取重定向URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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