Try this
Asp.net Page Codebehind add in pageload
Button1.Attributes.Add("onclick", "return Popup();");
In the head tag of the page source add the following script
<script type="text/javascript">
function Popup()
{
var result = confirm("Enter Message to Show");
if(result)
return true;
else
return false;
}
</script>