Page_load before a buttonclick event function

Discussion in 'ASP .Net' started by Guest, Oct 18, 2004.

  1. Guest

    Guest Guest

    Hi there,

    I just found out that when I have a button on an aspx page and i click it,
    the page_load event function executes before the button click event function.
    Why is this so? I have a web form that is continually displayed. Each time
    the button is clicked i want the value of a checkbox to be checked and then i
    want the checkbox to be cleared when the page is reloaded. The problem is
    that i thought i would clear the checkbox in the page_load function but then
    when the button click event function is run the checkbox will always be a
    value of false!

    Is this correct?
    Guest, Oct 18, 2004
    1. Advertisements

  2. Guest

    Guest Guest

    Guest, Oct 18, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.