browser stop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • I. Adler

    browser stop

    hi

    when the user is pressing the stop button in the browser toolbar my aspnet
    code on the server ist still runnig!
    how can i stop this code on the webserver?
    the stop button doesnt fire any events so i cant stop my code!

    thx, iwan


  • Vidar Petursson

    #2
    Re: browser stop

    Hi

    Try:
    Response.IsClie ntConnected

    --
    Best Regards
    Vidar Petursson
    =============== ===============
    Microsoft Internet Client & Controls MVP
    =============== ===============
    "I. Adler" <zenjarplan@yah oo.de> wrote in message
    news:1056622428 .272900@exnews. ..[color=blue]
    > hi
    >
    > when the user is pressing the stop button in the browser toolbar my aspnet
    > code on the server ist still runnig!
    > how can i stop this code on the webserver?
    > the stop button doesnt fire any events so i cant stop my code!
    >
    > thx, iwan
    >
    >[/color]


    Comment

    • bruce barker

      #3
      Re: browser stop

      no. the server will not detect the client shut down its connection until it
      sends the response data back. if you turn off buffering and keep flushing
      the response buffer, you may detect it sooner by checking
      Response.IsClie ntConnected (check after every buffer flush).

      -- bruce (sqlwork.com)


      "I. Adler" <zenjarplan@yah oo.de> wrote in message
      news:1056622428 .272900@exnews. ..[color=blue]
      > hi
      >
      > when the user is pressing the stop button in the browser toolbar my aspnet
      > code on the server ist still runnig!
      > how can i stop this code on the webserver?
      > the stop button doesnt fire any events so i cant stop my code!
      >
      > thx, iwan
      >
      >[/color]


      Comment

      Working...