Page Load & Unload

asp.net United States
  • 18 years ago

    Hai,
    Iam very new to ASP.net
    I was just wondering if somebody could sort these stuff out for me ............


    1. Which Event in AP.NET is similiar to Form_Unload as in VB where u can clean up the memory?


    2. There are about 5 List & Combo boxes on my ASP Page
    List box5 is filled based on the selection of the ListBox4.
    when I try to do this, The Page gets reloaded & the contents of  all the list boxes are loaded for the seond time, also clearing all the selection I have made to the list & combo boxes (It fires the Pageload event)
    How could I make only the ListBox
    Click event to fire & NOT the page load event ?


    Any help would be greatly appreciated


    Thanks in advance

  • 18 years ago

    Try creating a seperate procedure for the listbox4 selectedindexchanged event


    Private Sub ListBox4SelChanged(ByVal Sender As Object, ByVal e as System.Eventargs) Handles ListBox4.SelectedIndexChanged


    End Sub

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.”