S
shin
hi i have an asp.net page and i am trying to transfer control to another
asp.net page
response.redirect works fine but server.transfer gives me the foll error
why is that
System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at
System.Web.HttpServerUtility.Transfer(String path) at
WebApplication1.WebForm1.cmdProceed_Click(Object sender, EventArgs e) in
e:\inetpub\wwwroot\webapplication1\addbooking.aspx.cs:line 350
private void cmdProceed_Click(object sender, System.EventArgs e)
{
try
{
saveBookingInfo();
Server.Transfer ("ProcessBooking.aspx");
//response.redirect works fine here .
}
catch(Exception ex)
{
Response.Write(ex.ToString());
}
}
asp.net page
response.redirect works fine but server.transfer gives me the foll error
why is that
System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at
System.Web.HttpServerUtility.Transfer(String path) at
WebApplication1.WebForm1.cmdProceed_Click(Object sender, EventArgs e) in
e:\inetpub\wwwroot\webapplication1\addbooking.aspx.cs:line 350
private void cmdProceed_Click(object sender, System.EventArgs e)
{
try
{
saveBookingInfo();
Server.Transfer ("ProcessBooking.aspx");
//response.redirect works fine here .
}
catch(Exception ex)
{
Response.Write(ex.ToString());
}
}