you could check if the page load is being called as a result of a PostBack to prevent it firing the code every time, and put the button click code itno the relevant event handler
Sub Page_Load(Sender As Object, E As EventArgs)
if Page.IsPostBack = false then
'non-button click code goes here
end if
End sub