If I've understood correctly, you want to validate the page
client-side before the user is asked to confirm that they want to
submit the form? If that's right then I think you can use the
Page_ClientValidate() function as suggested by siva_sm and the
OnClientClick of your button, something like:
function ValidateMe()
{
var ok = Page_ClientValidate();
if(ok)
return confirm("Are you sure?");
else
return false;
}
<asp:Button ID="Button1" runat="server" Text="Submit" OnClientClick="if (!ValidateMe()) return false;" />
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."