Monday, March 16, 2009

How to check that the file which user is uploading should be only word file using asp.net RegularExpressionValidator?

ControlToValidate="FileUpload" Display="Dynamic" ErrorMessage="Upload a valid file"
ValidationExpression="^.+(.DOC|.DOCX|.doc|.docx)$">

No comments:

Post a Comment