0

I want to prevent button_click event in page refresh. I have searched but can not get any solution relevant for me. I have found this one:
http://www.dotnetspider.com/resources/42823-How-Avoid-Re-Submitting-Data-Page-Refresh.aspx

But i do not need to go inside button_click event in page refresh.

Response.Redict("") also not relevant here as i am returning label text after succesful button_click.

akeeseth
  • 845
  • 2
  • 15
  • 32

1 Answers1

1

What you looking for is not so simple.

The solution you can use for sure is the Post/Redirect/Get design pattern

or use some code that tries to detect the refresh of the page on:

http://www.codeproject.com/KB/aspnet/DetectingRefresh_.aspx

http://dotnetslackers.com/community/blogs/simoneb/archive/2007/01/06/Using-an-HttpModule-to-detect-page-refresh.aspx

Community
  • 1
  • 1
Aristos
  • 66,005
  • 16
  • 114
  • 150