ASP.NET 内部重定向到其他页面

发布于 2024-09-18 17:45:44 字数 211 浏览 0 评论 0原文

有没有办法将 ASP.NET 页面重定向到另一个页面并重新启动服务器工作流程,而用户不会在浏览器中看到它?

  1. 调用.NET页面(由路由处理)
  2. 基于此调用执行一些操作
  3. 调用其他网页内部(由http模块处理)

内部页面不“存在”(通过执行某些路由的模块)所以我不'不认为简单的 Server.Transfer 会起作用。

Is there a way to redirect a asp.net page to another and restart the server workflow without the user seeing it in their browser?

  1. Call to .NET Page (handled by routing)
  2. Perform some actions based on this call
  3. Call other webpage internal (handled by a httpmodule)

The internal page don't "exist" (passes though a module that performs some routing) so I don't think a simple Server.Transfer will work.

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

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

发布评论

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

评论(1

红焚 2024-09-25 17:45:44

您有两个选择,首先您使用 Jquery,您可以将数据发布到另一个页面而无需更改浏览器,第二个是您可以使用跨页面发布。在跨页面发布中,您可以从基本页面调用另一个页面。您可以访问该页面的所有基础数​​据。
按照此操作

You Two Option First you User Jquery and you can Poast data to another page without changes in browser and second is that you can use Cross Page posting. In Cross Page Posting you can call another page from base page. And you can access all data of base to that page.
Follow this.

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