在 PeopleSoft IFrame 中运行的 ASP.NET 应用程序 - 问题

发布于 2024-09-04 15:16:07 字数 216 浏览 2 评论 0原文

我有一个 .NET 应用程序在 Peoplesoft Web 门户 IFrame 内运行。 我需要做的是获取调用我的 .NET 应用程序的门户(父级)的 URL。 到目前为止,我已尝试使用 Request.Url.AbsoluteUri 获取 C# 代码中的 URL,但这不起作用。

我假设我必须在 JavaScript 中执行此操作,或者是否可以在我的 C# 代码中获取浏览器的 URL? 提前致谢。

I have a .NET app running inside a Peoplesoft web portal IFrame.
What I need to do is get the URL of the portal (parent) that called my .NET app.
So far I've tried to get the URL inside my c# code using Request.Url.AbsoluteUri but this is not working.

I'm assuming I will have to do this in JavaScript, or is it possible to get the browser's URL inside my c# code?
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸里的那抹悲凉 2024-09-11 15:16:07

ASP.NET 应用程序起始页上的 Request.UrlReferrer.AbsoluteUri 就达到了目的。
现在一切都很好。

Request.UrlReferrer.AbsoluteUri on the Start Page of the ASP.NET app did the trick.
All is good now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文