<asp:RegularExpressionValidator
id="RegularExpressionValidator1" runat="server"
ErrorMessage="Bad file type..."
ValidationExpression="^(([a-zA-Z]|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.mpeg|.MPEG|.wmv|.WMV|.avi|.AVI|.mov|.MOV)$" ControlToValidate="FileUpload1"></asp:RegularExpressionValidator>"VB Programmer" <[email protected]> wrote in messageHow do you limit the "Files of Type" selections in the dialog for aFileUpload control?>
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.