<asp:FileUpload ID="fuFileUpload" runat="server" /> <asp:Button ValidationGroup="fileUploadValidation" ID="btnUpload" OnClick="btnUpload_Click" runat="server" Text="Add" class="seaBtn" /> <asp:RegularExpressionValidator SetFocusOnError="true" runat="server" ID="revUpload" ControlToValidate="fuFileUpload" Display="None" ValidationGroup="fileUploadValidation" ErrorMessage="Only PDF or JPG files are Allowed." ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG.|.pdf|.PDF)$" /> <asp:ValidatorCalloutExtender ID="vceUpload" runat="server" TargetControlID="revUpload" PopupPosition="BottomLeft" WarningIconImageUrl="~/Images/icons/error.png"> </asp:ValidatorCalloutExtender>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)