Aniket Rana

Aniket Rana

  • NA
  • 979
  • 12.2k

Error in response.redirect

Dec 22 2019 10:16 PM
   
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)