I have a web page with two panels. Panel1 has the user input controls and panel2 is a gridview. Once user finsished input of panel1 user controls the criteria is used to upload into SQL datassource and then Panel1 is hidden and panel2 is displayed showing the gridview of the records uploaded and bound to the SQL datasource.
I notice if user refreshes the browser the records are added to database again. My submit button increments the id for each update so this causes duplicate records.
How can I uase AJAX to stop this from happening - basically check with condition if page session was already sent or disable the browser refresh. I am thinking a session condition to check if the submit button on panel1 was already executed would my best approach.
Please help - checked internet with no real solutions for this problem and know someone has got to have done this. ASP.NET itself has no real solution so I am thinking of AJAX client side to handle it somehow.