ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.[Solved] RegularExpression Validator for File Extension Validation in ASP.Net FileUpload<p>Try this one</p> <pre class="brush: xml">&lt;asp:FileUpload ID=&#34;FileUpload1&#34; runat=&#34;server&#34; /&gt; &lt;asp:RegularExpressionValidator ValidationExpression=&#34;([a-zA-Z0-9\s_\\.\-:])+(.doc|.docx|.pdf)$&#34; ControlToValidate=&#34;FileUpload1&#34; runat=&#34;server&#34; ErrorMessage=&#34;Please select a valid file.&#34; /&gt; &lt;asp:Button Text=&#34;Submit&#34; runat=&#34;server&#34; /&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/148400/Solved-RegularExpression-Validator-for-File-Extension-Validation-in-ASPNet-FileUpload/https://www.aspforums.net:443/Threads/148400/Solved-RegularExpression-Validator-for-File-Extension-Validation-in-ASPNet-FileUpload/Fri, 06 Feb 2015 08:29:39 GMT