If you want to check whether the current page will be a postback if the user clicks on a submit button, you can check for the presence of viewstate: