Response.Redirect from one web project to another in Visual Studio

前端 未结 1 1560
夕颜
夕颜 2021-01-06 13:34

I am attempting to integrate a project into a pre-existing solution.

The start-up project in the solution is named \"Foo.\" It is written to the virtual path \"/cswe

相关标签:
1条回答
  • 2021-01-06 14:08

    Try HttpContext.Response.Redirect("/csweb/Default.aspx"). The tilde "~" in your current redirect says to start in this application's home folder. By removing that you can redirect to some other location on your site.

    You can also fully qualify the redirect to go to an entirely different site if you wish.

    0 讨论(0)
提交回复
热议问题