put this simple javascript after the closing html tag
<script type="text/javascript">
function callMe()
{
if(Page_IsValid == true)
{
a = document.getElementById("divToShowID");
a.style.display = "";
}
}
Page_IsValid = false;
</script>
then set the OnClientClick="callMe();" of the button