Server.Transfer( ... ) between apps

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.
 
B

bruce barker

you can only Server.Transfer to a apx page in the same application, you
should use a Redirect instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top