Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. "Thread is being aborted" exception while using Response.Redirect(..)

"Thread is being aborted" exception while using Response.Redirect(..)

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vsree
    wrote on last edited by
    #1

    Hi Am using try { Response.Redirect("Page2.aspx"); } Catch(System.Threading.ThreadAbortException ThreadEx) { } My problem is am getting "Thread is being aborted" exception at Response.Redirect("Page2.aspx"). (Obviously,not redirecting to the required page) Why it's coming and how to resolve it? Please help me! Thanks!

    P N 2 Replies Last reply
    0
    • V Vsree

      Hi Am using try { Response.Redirect("Page2.aspx"); } Catch(System.Threading.ThreadAbortException ThreadEx) { } My problem is am getting "Thread is being aborted" exception at Response.Redirect("Page2.aspx"). (Obviously,not redirecting to the required page) Why it's coming and how to resolve it? Please help me! Thanks!

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      When u call Response.Redirect method, Round trip process fire, so in these u should be store u'r thread variable in session or cookies. or u can try Server.Transfer.

      Parwej Back...............DON of Developer....... Parwej Ahamad g_parwez@rediffmail.com

      V 1 Reply Last reply
      0
      • V Vsree

        Hi Am using try { Response.Redirect("Page2.aspx"); } Catch(System.Threading.ThreadAbortException ThreadEx) { } My problem is am getting "Thread is being aborted" exception at Response.Redirect("Page2.aspx"). (Obviously,not redirecting to the required page) Why it's coming and how to resolve it? Please help me! Thanks!

        N Offline
        N Offline
        Nagraj Naik
        wrote on last edited by
        #3

        Hi, You have to make small change in page direction. Response.Redirect("Page2.aspx",false); I hope this will work Regards, Nagraj

        V 1 Reply Last reply
        0
        • N Nagraj Naik

          Hi, You have to make small change in page direction. Response.Redirect("Page2.aspx",false); I hope this will work Regards, Nagraj

          V Offline
          V Offline
          Vsree
          wrote on last edited by
          #4

          Thanx Nagraj!

          1 Reply Last reply
          0
          • P Parwej Ahamad

            When u call Response.Redirect method, Round trip process fire, so in these u should be store u'r thread variable in session or cookies. or u can try Server.Transfer.

            Parwej Back...............DON of Developer....... Parwej Ahamad g_parwez@rediffmail.com

            V Offline
            V Offline
            Vsree
            wrote on last edited by
            #5

            Thanx parwez!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups