Avoid calling events on page refresh

Discussion in 'ASP .Net' started by Guest, Feb 21, 2006.

  1. Guest

    Guest Guest

    Hi,

    I want to avoid the events being called when page is refreshed. For eg: I
    call a button event that modifies some data in the database. If i press F5 on
    the same page again the button event is fired and data is modified. How do I
    avoid it?

    Thanks in advance
    Priya
     
    Guest, Feb 21, 2006
    #1
    1. Advertisements

  2. Eliyahu Goldin, Feb 21, 2006
    #2
    1. Advertisements

  3. Finish every action with Response.Redirect to itself.
    That would do it.

    George.
     
    George Ter-Saakov, Feb 21, 2006
    #3
    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.