N
NRao
Hello,
I am using a custom validator control and wanted to validate server side and
do not have client side validation function. The server side event executes
but does not stop the page or does not display the error.
<asp:CustomValidator id="custWDEndDate" runat="server"
ControlToValidate="txtPickupDate" ErrorMessage="Not
Valid" EnableClientScript="False"
OnServerValidate="custWDEndDate_ServerValidate"></asp:CustomValidator>
protected void custWDEndDate_ServerValidate(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
args.IsValid = false;
}
Any ideas
I am using a custom validator control and wanted to validate server side and
do not have client side validation function. The server side event executes
but does not stop the page or does not display the error.
<asp:CustomValidator id="custWDEndDate" runat="server"
ControlToValidate="txtPickupDate" ErrorMessage="Not
Valid" EnableClientScript="False"
OnServerValidate="custWDEndDate_ServerValidate"></asp:CustomValidator>
protected void custWDEndDate_ServerValidate(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
args.IsValid = false;
}
Any ideas