B
bienwell
Hi all,
I have a question on the web browser to use for the ASP.NET program. I have
a web page developped in ASP.NET program (VB language). On my page, there's
is an object:
<input id="File1" type="file" size="70" name="File1" runat="Server" />
I put this validation expression for the file upload
<asp:regularexpressionvalidator id="RegularExpressionValidator3"
runat="server" ForeColor="LightCoral"
ValidationExpression="^(([a-zA-Z]|(\\{2}\w+)\$?)(\\(\w[\w].*))*\\(\w{2}|\w{3})_(A|a)(B|b)(C|c)\d{4}_\d{2}_\d{2}(.csv|.CSV|.Csv|.txt|.Txt|.TXT)$"
ErrorMessage="You must specify the file location and the filename
must follow this convention: CC(C)_ABCyyyy_mm_dd.csv"
ControlToValidate="File1"></asp:regularexpressionvalidator>
With IE and Firefox browser 2.0.0.20, there's no problem when users select
the correct path and the file name, and the application allows users to
upload the file.
With Firefox browser 3.0.7, users receive the error message "You must
specify the file location and the filename must follow this convention:
CC(C)_ABCyyyy_mm_dd.csv" , no matter they select the correct file, and the
users could not upload data file.
Does the Firefox browser 3.0.7 understand the Script I put on the
regularexpressionvalidator? Is there any wrong with my ValidationExpression?
What should I do to make it work in any versions of Firefox ?
Please help!
Thanks in advance.
I have a question on the web browser to use for the ASP.NET program. I have
a web page developped in ASP.NET program (VB language). On my page, there's
is an object:
<input id="File1" type="file" size="70" name="File1" runat="Server" />
I put this validation expression for the file upload
<asp:regularexpressionvalidator id="RegularExpressionValidator3"
runat="server" ForeColor="LightCoral"
ValidationExpression="^(([a-zA-Z]|(\\{2}\w+)\$?)(\\(\w[\w].*))*\\(\w{2}|\w{3})_(A|a)(B|b)(C|c)\d{4}_\d{2}_\d{2}(.csv|.CSV|.Csv|.txt|.Txt|.TXT)$"
ErrorMessage="You must specify the file location and the filename
must follow this convention: CC(C)_ABCyyyy_mm_dd.csv"
ControlToValidate="File1"></asp:regularexpressionvalidator>
With IE and Firefox browser 2.0.0.20, there's no problem when users select
the correct path and the file name, and the application allows users to
upload the file.
With Firefox browser 3.0.7, users receive the error message "You must
specify the file location and the filename must follow this convention:
CC(C)_ABCyyyy_mm_dd.csv" , no matter they select the correct file, and the
users could not upload data file.
Does the Firefox browser 3.0.7 understand the Script I put on the
regularexpressionvalidator? Is there any wrong with my ValidationExpression?
What should I do to make it work in any versions of Firefox ?
Please help!
Thanks in advance.