我可以将Web表单从一个Web应用程序调用到另一个Web应用程序 [英] Can I call web form from one web application into another web application
问题描述
我想 Response.Redirect网络表单从一个网络应用程序到另一个网络应用程序
我尝试过:
i有两个网络应用程序
1-演示
2- NewDemo
NewDemo Web应用程序包含register.aspx表单和Demo Web应用程序包含default.aspx页面
i想要打开注册表。来自NewDemo Web应用程序的aspx按钮点击来自Demo web应用程序的default.aspx
可以....
i want to Response.Redirect web form from one web application into another web application
What I have tried:
i have two web applications
1- Demo
2- NewDemo
NewDemo web application contains register.aspx form and Demo web application contains default.aspx page
i want to open register.aspx from NewDemo web application on button click on default.aspx from Demo web application
Can it is possible ....
推荐答案
是的可能。
重定向时只需使用完整的重定向路径
见下面的代码段
Yes it is possible.
Just Use full redirect path when you are redirecting
see below snippet
string szPath = "http://ipaddress/NewDemo/Register.aspx";
Response.Redirect(szPath);
如果你想传输一些变量,那么你也可以使用QueryString。
if you want to transfer some variable then you can use QueryString too.
这篇关于我可以将Web表单从一个Web应用程序调用到另一个Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!