如何在同一个解决方案中从一个项目重定向另外两个项目 [英] how to redirect from one project two another projects within same solution

查看:67
本文介绍了如何在同一个解决方案中从一个项目重定向另外两个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个解决方案中有两个项目我需要从第一个项目的一个页面重定向到同一解决方案中的另一个项目页面。





例如



拥有XYZ解决方案,我已经添加了两个单独的项目。



ABC&PQR。



Abc项目包含dashbaord.aspx页面和PQR项目包含报告页面。



用户登录后我想要从Dashbaord重定向到报告页面。

having Two Project in One Solution i need to redirect from one page on 1st project to another projects page within same solution.


E.g

Having XYZ solution in that i have added two separate projects .

ABC & PQR.

Abc project contain dashbaord.aspx page & PQR Project contain Report page .

After user login i want to redirect from Dashbaord to Report page.

推荐答案



当我们浏览任何页面时,虚拟目录是项目的根目录如果要从一个虚拟目录移动到另一个虚拟目录,则需要提供完整的URL。我假设您提到的ABC和PQR只是两个不同的项目文件夹。



你需要提供完整的网址

Hi,
When we browse any page, virtual directory is the root of the project and if you want to move from one virtual directory to another virtual directory you need to give complete url. I assume ABC and PQR you have mentioned are just two different project folders.

You need to give complete url in
Response.Redirect(http://ABC/dashbaord.aspx); 



导航到仪表板页面


to navigate to dashboard page

Response.Redirect(http://PQR/Report.aspx);



导航到报告页



我希望我理解你的问题是正确的。对不起,如果没有。



谢谢

Sriram.B


to navigate to Reportpage

I hope i understood your question correct. Sorry if not.

Thanks
Sriram.B


这篇关于如何在同一个解决方案中从一个项目重定向另外两个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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