Flush/clear a form after Post

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

    Flush/clear a form after Post

    Hi,

    Is there any method to clear a form collection after a post without have to
    do a response.redire ct?
    I am trying to avoid having the form re-submitted a second time on a page
    refresh.

    Thanks in advance
    Christian


  • Aaron [SQL Server MVP]

    #2
    Re: Flush/clear a form after Post

    You could set a session variable when the form is posted, and if it gets
    posted again, reject it. You can't prevent the user from hitting refresh
    and saying yes to re-submit the same information; the Request collection is
    read-only.

    Or, you could redirect...

    --
    Please contact this domain's administrator as their DNS Made Easy services have expired.

    (Reverse address to reply.)




    "Christian Perthen" <abracadabara@d ontreplytothisa ddress.com> wrote in
    message news:ef5l7jAzEH A.3708@TK2MSFTN GP14.phx.gbl...[color=blue]
    > Hi,
    >
    > Is there any method to clear a form collection after a post without have[/color]
    to[color=blue]
    > do a response.redire ct?
    > I am trying to avoid having the form re-submitted a second time on a page
    > refresh.
    >
    > Thanks in advance
    > Christian
    >
    >[/color]


    Comment

    Working...