7
Answers

Error in response.redirect

Aniket Rana

Aniket Rana

5y
895
1
   
When I use response.redirect in C# web application at that time show error "Thread being aborted" 
and when I get session value from another page that time session contains null value because of error occurs. 
how can I resolve this problem?
 
My code :
try
{
   ..........
   ....... ...
   Code 
   ..........
   ......... 
 
   Session["dtCSV"] = dtArjunaCSV; 
   Response.Redirect("ArjunaCSV.aspx"); 
}
catch(Exception ex) 
{
   lblErorr.Text="Error :"  ex.Tostring();
 
Answers (7)