HighTechTalks DotNet Forums  

Validating files with regularexpressionvalidator is always false

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Validating files with regularexpressionvalidator is always false in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ASP Developer
 
Posts: n/a

Default Validating files with regularexpressionvalidator is always false - 12-28-2006 , 07:15 PM






I would like to use a regularexpressionvalidator to ensure that a file that a
user is uploading is a certain file type. I tried the following example,

http://msdn2.microsoft.com/en-us/library/aa479405.aspx

However, If you browse to a file that is not allowed, and then browse to
another file that is allowed and click on a submit button, page.isvalid is
still false even though a valid file has been selected. Any help would be
greatly appreciated.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.