Whenever it is just added to a form, Custom validation (ASP.NET validations) stop working.
Please see the following two samples, the first one does not work while the other works, the only difference is adding the scriptmanager.
this does not work
this works
I also added a comment to one of your posts earlier which states that CustomValidation is not working with RadUpload, i eliminated why here.
Please help.
we are using Q2 2009
Please see the following two samples, the first one does not work while the other works, the only difference is adding the scriptmanager.
this does not work
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestBasel2.aspx.vb" Inherits="TestBasel2" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<body> |
<form id="form1" runat="server"> |
<div> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<script language="javascript" type="text/javascript"> |
function ClientValidateUpload2(source, arguments) |
{ |
alert(1); |
} |
</script> |
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" ClientValidationFunction=ClientValidateUpload2 ></asp:CustomValidator> |
<asp:Button ID="Button1" runat="server" Text="Upload" CausesValidation=true /> |
</div> |
</form> |
</body> |
</html> |
this works
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestBasel2.aspx.vb" Inherits="TestBasel2" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<body> |
<form id="form1" runat="server"> |
<div> |
<script language="javascript" type="text/javascript"> |
function ClientValidateUpload2(source, arguments) |
{ |
alert(1); |
} |
</script> |
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" ClientValidationFunction=ClientValidateUpload2 ></asp:CustomValidator> |
<asp:Button ID="Button1" runat="server" Text="Upload" CausesValidation=true /> |
</div> |
</form> |
</body> |
</html> |
I also added a comment to one of your posts earlier which states that CustomValidation is not working with RadUpload, i eliminated why here.
Please help.
we are using Q2 2009