Server.Transfer does not work?
Posted
by trnTash
on Stack Overflow
See other posts from Stack Overflow
or by trnTash
Published on 2010-05-11T07:45:03Z
Indexed on
2010/05/11
7:54 UTC
Read the original article
Hit count: 235
ASP.NET
I want to redirect to another page using Server.Transfer and I have this simple code:
if (Page.IsPostBack)
{
try
{
Server.Transfer("AnotherPage.aspx");
}
catch (Exception)
{
throw ;
}
}
But I'm getting an error: "Error executing child request for AnotherPage.aspx.". Could not find the solution on the net.
Just to mention, Response.Redirect works flawlessly.
© Stack Overflow or respective owner