R
Rahul
We have an ASP.net 2.0 application. The page has a linkbutton that presses
and we make visible a panel that has an update button. He presses the
updated button and the database gets updated. We make the panel invisible
again. But if the user presses the refresh button, the same event handler
gets triggered again and ends up updating the database. This messes up the
data.
Is there a way to avoid this. I know that I can do response.Redirect and
that solves the issue but now the page had to do 2 calls to the server.
There has to be a more elegant way of solve this problem.
Thanks
Rahul
and we make visible a panel that has an update button. He presses the
updated button and the database gets updated. We make the panel invisible
again. But if the user presses the refresh button, the same event handler
gets triggered again and ends up updating the database. This messes up the
data.
Is there a way to avoid this. I know that I can do response.Redirect and
that solves the issue but now the page had to do 2 calls to the server.
There has to be a more elegant way of solve this problem.
Thanks
Rahul