I am using a DataGrid to add a new row to a database and it works fine. BUT if I hit 'Refresh' on the browser right after I have added it, the app tries to execute the add function again and gives me an error. The same thing happens if I run a delete row function. Everything's fine... unless I hit 'refresh'.

If the commands lie on a button_click event function, why is this happening as if it were on a Page_Load event? I thought the only thing that ran as a page reloaded was the Page_Load event. (?)