zoukankan      html  css  js  c++  java
  • Response.Redirect:正在中止线程

    当从另一个页面获取数据时会抛出异常:正在中止线程

     

     解决方法:

    Response.Redirec会对Response.End 的内部调用,Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件,不执行 Response.End 后面的代码行。使用重载 Response.Redirect(String url, bool endResponse),该重载对 endResponse 参数传递 false 以取消对 Response.End 的内部调用。Response.Redirect("Home.aspx",false);Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面的代码行。

  • 相关阅读:
    Shell Sort
    Insertion Sort
    Notations
    Nakamori Akina
    QuickSort
    Onedrive File Open Problem
    JSON Introduction
    System Call
    进程软中断通信
    Bubble Sort
  • 原文地址:https://www.cnblogs.com/HapetyPing/p/13052741.html
Copyright © 2011-2022 走看看