ASP.NET Postback Event occurs Again after page refresh (Pressing F5)

Posted by Ujjal under ASP.NET on 3/2/2012 | Points: 10 | Views : 4934 | Status : [Member] | Replies : 1
why does the same event occur when I press F5 as it did when I clicked the button?

For example - On an ASP.NET webform I click a button which produces a postback and a Button.Click event. After the postback, I press F5 to refresh my webform, which executes Button.Click again.




Responses

Posted by: Kk86kiran on: 3/2/2012 [Member] Starter | Points: 25

Up
0
Down
hi ujjal try this below link.

http://www.codeproject.com/Articles/68371/Detecting-Refresh-or-Postback-in-ASP-NET

k.m.j.kiran

Ujjal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response