Server.Transfer( ... ) between apps

  • Thread starter Thread starter mg
  • Start date Start date
M

mg

I have two apps off wwwroot:

App1/WebForm1.aspx

App2/WebForm1.aspx

In the code behind of App1/WebForm1.aspx, I have

private void Button1_Click(object sender, System.EventArgs
e)

{
Server.Transfer("/App2/WebForm1.aspx");
}

But, App2/WebForm1.aspx doesn't load.

Any help with this problem would be appreciated.
 
you can only Server.Transfer to a apx page in the same application, you
should use a Redirect instead.
 
Back
Top