automatic button click event calls on a page refresh!!!

In asp.net i have faced this issue of getting button click event called on the page load…

Actually why this happens..???

suppose we have a form and when we click on the submit  button of that form the data in the form will be saved and after that when we refresh that page the button click event will be again called and the data in the form will be save again…

so to over come this problem you have to use page redirect method at the end of the submission of the form

on the button click you can use response.Redirect(~/Register.aspx)

hope this will solve your problem