how to prevent a page refresh to behave like a submit postback?

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

    how to prevent a page refresh to behave like a submit postback?

    Hi all,

    I need to know how to prevent to repeat the operations
    that happen when the submit button is clicked, when the
    page is refreshed.

    I noticed that if I refresh my page after the submit button is clicked,
    the event is again activated even though I just refreshed the page,
    did not push the button again..

    Thanks,

    Carlos.


  • Hans Kesting

    #2
    Re: how to prevent a page refresh to behave like a submit postback?

    on 2-7-2008, Carlos supposed :
    Hi all,
    >
    I need to know how to prevent to repeat the operations
    that happen when the submit button is clicked, when the
    page is refreshed.
    >
    I noticed that if I refresh my page after the submit button is clicked,
    the event is again activated even though I just refreshed the page,
    did not push the button again..
    >
    Thanks,
    >
    Carlos.
    What I sometimes use is this: after the submit action has completed,
    issue a redirect to the (same) page. This will force an extra
    roundtrip, but the browser "forgets" about that post-action (the
    submit).

    Hans Kesting


    Comment

    • Carlos

      #3
      Re: how to prevent a page refresh to behave like a submit postback?

      Thank you so much Hans for your prompt reply.

      Carlos.

      "Hans Kesting" <news.hansdk@sp amgourmet.comwr ote in message
      news:%237NbVuE3 IHA.4284@TK2MSF TNGP04.phx.gbl. ..
      on 2-7-2008, Carlos supposed :
      >Hi all,
      >>
      > I need to know how to prevent to repeat the operations
      >that happen when the submit button is clicked, when the
      >page is refreshed.
      >>
      >I noticed that if I refresh my page after the submit button is clicked,
      >the event is again activated even though I just refreshed the page,
      >did not push the button again..
      >>
      >Thanks,
      >>
      > Carlos.
      >
      What I sometimes use is this: after the submit action has completed, issue
      a redirect to the (same) page. This will force an extra roundtrip, but the
      browser "forgets" about that post-action (the submit).
      >
      Hans Kesting
      >
      >

      Comment

      Working...