Sure,
<asp:TextBox runat="server" ID="TextBox1" CausesValidatio n="false"/>
<asp:RequiredFi eldValidator runat="server" ID="RequiredFie ldValidator1"
ControlToValida te="TextBox1"
ErrorMessage="" Display="Dynami c" EnableClientScr ipt="true"/>
<asp:TextBox runat="server" ID="TextBox2" CausesValidatio n="false"/>
<asp:RequiredFi eldValidator runat="server" ID="RequiredFie ldValidator2"
ControlToValida te="TextBox2"
ErrorMessage="" Display="Dynami c" EnableClientScr ipt="true"/>
<asp:TextBox runat="server" ID="TextBox3" CausesValidatio n="false"/>
<asp:RequiredFi eldValidator runat="server" ID="RequiredFie ldValidator3"
ControlToValida te="TextBox3"
ErrorMessage="" Display="Dynami c" EnableClientScr ipt="true"/>
<asp:Button runat="server" ID="Button3" Text="Click!" OnClientClick=" return
ValidateUserDat a();"/>
<script type="text/javascript">
function ValidateUserDat a()
{
for (i = 0; i < Page_Validators .length; i++)
{
ValidatorValida te(Page_Validat ors[i]);
}
ValidatorUpdate IsValid();
if (Page_IsValid == true)
{
return true;
}
else
{
alert('my custom code!');
return false;
}
}
</script>
--
Milosz
"turboJeepe r" wrote:
Can somebody help me out with this please?