简体   繁体   English

应用程序之间的server.transfer

[英]server.transfer between applications

I have 3 applications under 1 solution with the following structure, 我有以下结构的1个解决方案下的3个应用程序,

WebSoln, WebSoln,

  • WebApp > Default.aspx WebApp> Default.aspx
  • SSOApp > SSO.aspx (contains only redirection to Default.aspx) SSOApp> SSO.aspx(仅包含重定向到Default.aspx)
  • TestApp > Test.aspx page TestApp> Test.aspx页面

I have set the TestApp as the starting project and now I need the following flow. 我已经将TestApp设置为开始项目,现在需要以下流程。 When I click a submit button in Test.aspx page it should go to SSOApp > SSO.aspx which in turn should redirect to Default.aspx page under WebApp. 当我单击Test.aspx页面中的提交按钮时,应转到SSOApp> SSO.aspx,这又应重定向到WebApp下的Default.aspx页面。

How can I transfer between application, I am trying to use Server.Transfer, I am not sure what URL should I be using. 我如何在应用程序之间传输,我尝试使用Server.Transfer,我不确定应该使用哪个URL。 Can you please give me the URL that would help me transfer between the applications. 您能否给我提供可以帮助我在应用程序之间进行传输的URL。

Server.Transfer only works for the same application. Server.Transfer仅适用于同一应用程序。 You should use Response.Redirect method to redirect page in another application. 您应该使用Response.Redirect方法来重定向另一个应用程序中的页面。

Why we cant use Server.Transfer() to redirect on another server 为什么我们不能使用Server.Transfer()在另一台服务器上重定向

Will Server.Transfer work across AppDomains/Web Applications? Server.Transfer是否可以跨AppDomains / Web应用程序工作?

Lets say you have two application in the same iis. 假设您在同一iis中有两个应用程序。

Ex: Response.Redirect("http://server/otherapp/default.aspx"); 例如: Response.Redirect("http://server/otherapp/default.aspx");

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

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