I can't get this CustomValidator working.
In the <head>:
<script language="javascript" type="text/javascript">
function ValidateFile(sender, args){
alert("Hi");
args.IsValid = document.getElementById("fuFile").value != "" ||
document.getElementById("c101_c7").value != "";
}
</script>
In the body:
<asp:FileUpload ID="fuFile" runat="server" size="70"/>
<asp:TextBox ID="c101_c7" class="textbox" runat="server"/>
<asp:CustomValidator ID="vldFile" runat="server" ClientValidationFunction="ValidateFile"
ErrorMessage="You must either upload a file or provide a URL of a file."></asp:CustomValidator>
What should be in the args.IsValid if either the FileUpload or TextBox has to be filled in?