<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Only .doc , .docx or .txt files" ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.doc|.docx|.txt)$" ControlToValidate="ContractFile" ValidationGroup="OwnerSignUp">
^.*?\.(doc|docx|txt)$
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)