add validation to fileupload .net VB
Posted on 2010-09-18
Right now my FileUpload is being validated to check for the correct file extension, but I would also like to make sure that the field is not empty. How would I modify the below code to make sure that the field cannot be left empty? Thanks.
<asp:RegularExpressionValidator id="FileUpLoadValidator2" runat="server" ErrorMessage=" Upload .png files only."