<img id="loader" style="display:none;" src="loaderImage.gif"/>
<script type="text/javascript">
function showLoader() {
document.getElementById("loader").style.display = 'block';
}
</script>
<asp:Button ID="submtBtn" CssClass="submitBtn" runat="server" Text="Submit" OnClientClick="showLoader();"
OnClick="submtBtn_Click" Style="float: right;" />
It won't help you though, your request can only have one response so if that response is a file you can't also return html with the loader hidden, it will simply stay there and you won't be able to return any js etc to tell the image to hide.