Monday, May 23, 2005

Capturing Page Refresh

Hello Geeks,
Today, I have a very interesting article to share with you. Often asp.net pages involve postbacks to the server to insert data, or update data. If you have ever put a breakpoint on your insert or update event and debugged your code, you must have observed something wierd. The page calls the last postback event, on refreshing. So if it is an insert or an update event , it is re-executed. To avoid this, we need to differentiate a page refresh from a page postback event. I have come across two great articles that help you achieve this feat Although one of them is based on the other, it gives you two different perspectives of solving the same problem. Please visit the below links for more information.
Dino Esposito's article
Steven Bey's article

Hope this helps you.

0 Comments:

Post a Comment

<< Home