I have a aspx form with some buttons. When one of the buttons is clicked it executes a stored procedure that assigns some records to the associate logged in. The problem is that when the page is refreshed by pressing F5 the page is resubmitted and the code is executed as if the button had been pressed again.
Is there a way to determine if the button has been clicked, or if the PostBack is occurring because the browser is refreshed? Is there another way to handle this situation that I am unware of?
PS. I am using the HtmlControls library and have tried adding actions in the InitializeComponent() section.
Thanks in advance for any suggestions.