New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
<input id="DocFile" type="file" runat="server" title="upldFileBox" /> This is what is seen if I try to use a regular expression validator: C:\Documents and Settings\syount\Desktop\test.docx C:\Documents and Settings\syount\Desktop\test.doc C:\Documents and Settings\syount\Desktop\test.txt and so on. string filename = Path.GetFileName(DocFile.Value); But this is what is seen in the code behind: text.doc test.docx and so on.
Join the community of 500,000 technology professionals and ask your questions.