Unload event in a webform

Last post 07-11-2007 7:25 AM by klaus_b. 4 replies.

Sort Posts:

  • Unload event in a webform

    07-10-2007, 4:38 PM
    • Member
      23 point Member
    • cplusplus1
    • Member since 01-27-2007, 2:28 PM
    • Posts 190

    I wrote a piece of code to be executed only in the unload event. eve i when i open the form( it first is going to load event) and immedeteley getting into unload event. and the code is getting fired.

    the name says unload event, but it gets read all the time i go to that particular form.

    is there a logic that definetely only when the form is released. i want that piece to get executed.

    please help thank you very much for the information. 

     

     

  • Re: Unload event in a webform

    07-10-2007, 4:47 PM
    Answer
    • All-Star
      92,505 point All-Star
    • SGWellens
    • Member since 01-02-2007, 9:27 PM
    • Twin Cities, MN
    • Posts 7,541
    • Moderator
      TrustedFriends-MVPs
    1. An Asp.Net form is loaded.
    2. It is rendered (html created).
    3. The html is sent to the browser.
    4. The form is then unloaded.

    The Form object at the server is unloaded even though the html is still "visible" in the browser.  That's the way it works.

     

    Steve Wellens

    My blog
  • Re: Unload event in a webform

    07-10-2007, 5:16 PM
    Answer
    • Member
      216 point Member
    • robnot
    • Member since 02-20-2007, 11:50 PM
    • Posts 99

     You might be able to try the Session_End() event.  Just note that this will also fire if the user's session times out.

  • Re: Unload event in a webform

    07-11-2007, 7:00 AM
    • Member
      23 point Member
    • cplusplus1
    • Member since 01-27-2007, 2:28 PM
    • Posts 190

    Hello Robnot,

    How to get the Session_End() event. i am unable to find that particular event. under page events.

     

    Thanks.

  • Re: Unload event in a webform

    07-11-2007, 7:25 AM
    Answer
    • Contributor
      2,847 point Contributor
    • klaus_b
    • Member since 05-03-2006, 9:11 AM
    • Bavaria, Germany
    • Posts 566

    cplusplus1:

    How to get the Session_End() event. i am unable to find that particular event. under page events.

    Session_End() event is used in Global.asax

    Servus,
    Klaus

    I haven't the faintest idea, but great many therefrom.
    klaus_b@.NET
Page 1 of 1 (5 items)