Server.Tranfer giving Thread abort problem

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
 
T

Teemu Keiski

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)
 
G

Guest

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.
 

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

Members online

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top