Server.Tranfer giving Thread abort problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used the context object the following way to use server.transfer to pass the dat

Context.Items.Add("SessionID",strSessionID)
Server.Transfer("WebForm2.aspx")

here strSessionID is public strin

once Server.Transfer is called it is throwing this erro
ErrorSystem.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort() 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 Hiddenfieldex.WebForm1.Page_Load(Object sender, EventArgs e)

can I have solution to this please
 
Hi,

http://support.microsoft.com/default.aspx?scid=kb;en-us;312629

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke


srikirti said:
I used the context object the following way to use server.transfer to pass the data

Context.Items.Add("SessionID",strSessionID);
Server.Transfer("WebForm2.aspx");

here strSessionID is public string

once Server.Transfer is called it is throwing this error
ErrorSystem.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort()
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
Hiddenfieldex.WebForm1.Page_Load(Object sender, EventArgs e)
 
hi ,Joerg Joos

The exception is not raising but the value stored in the context object I unable to retireve on the next page
Either with page property or query string.
 
Back
Top