Posted on: 7/9/2014 2:58:05 PM | Views : 812

I have asp.net FileUpload control AttachmentsSelecter. As the user is required to upload a file, I added a RequiredFieldValidator and apply it on the AttachmentsSelecter control. The problem is that the error associated with the RequiredFiledValidator is always shown.
The asp.net code of the AttachmentsSelecter is:
<asp:FileUpload ID="AttachmentsSelecter" runat="server" onchange="IsFileSelected()" Width="515px" BorderColor="Black" BorderStyle="Solid" Height="35px" BackColor="White" BorderWidth="2px" style="font-size: 22px; font-family: 'sakkal Majalla';" CssClass="FileUploadStyle" /> The asp.net code of the Validator is:
<asp:RequiredFieldValidator ID="R ...

Go to the complete details ...