It depend on your code that you written on the button click event, If you do not want to postback the page then I suggest you to use jQuery Ajax from the following
LINK. In this technique postback not happen and hence only your button click code will work.
hope this help you