Click here to Skip to main content
15,902,445 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: javascript and database Pin
young34512-Mar-08 7:19
young34512-Mar-08 7:19 
GeneralRe: javascript and database Pin
Not Active12-Mar-08 8:06
mentorNot Active12-Mar-08 8:06 
GeneralRe: javascript and database Pin
young34512-Mar-08 8:28
young34512-Mar-08 8:28 
GeneralRe: javascript and database Pin
Not Active12-Mar-08 9:15
mentorNot Active12-Mar-08 9:15 
Questionhow to send mail using sql triggers Pin
Shaik Haneef12-Mar-08 6:18
Shaik Haneef12-Mar-08 6:18 
AnswerRe: how to send mail using sql triggers Pin
Parwej Ahamad12-Mar-08 6:35
professionalParwej Ahamad12-Mar-08 6:35 
AnswerRe: how to send mail using sql triggers Pin
Not Active12-Mar-08 6:53
mentorNot Active12-Mar-08 6:53 
QuestionThis Validation Expression will work in firefox but not ie. How do I get it to work in IE? [modified] Pin
Ali Chaudhry12-Mar-08 5:35
Ali Chaudhry12-Mar-08 5:35 
I have a RequiredFieldValidator on a fileupload control that tests for a filename ending in 'daily.txt' or 'Daily.txt' or 'DAILY.TXT' or any other similar mixed upper/lowercase format of the filename 'daily.txt'. The validation expression I created is as follows:

ValidationExpression="[Dd][Aa][Ii][Ll][Yy]\.[Tt][Xx][Tt]$"

This tests out perfect in the many online regex validators. It even works in Firefox, but for some reason, IE won't validate a match. Is there something wrong with the validation expression with respect to how IE handles it?


The full markup for the fileupload is as below:
<asp:fileupload id="FileUploadImport" runat="server" />
<asp:button id="btnUpload" runat="server" text="Upload" validationgroup="ImportUpload" />
<asp:requiredfieldvalidator
  ID="rfvFileUploadImport" 
  Display="Dynamic" 
  ControlToValidate="FileUploadImport" 
  SetFocusOnError="true" 
  Text="Please select Import File." 
  ValidationGroup="ImportUpload" 
  runat="server" />
<asp:regularexpressionvalidator
  id="revFileUploadImport" 
  ControlToValidate="FileUploadImport" 
  SetFocusOnError="true" 
  ErrorMessage="Please select the location for the 'daily.txt' file" 
  ValidationExpression="[Dd][Aa][Ii][Ll][Yy]\.[Tt][Xx][Tt]$"
  ValidationGroup="ImportUploadr" runat="server" />


Please Help. I am using both IE 7 and IE 6


-Ali

modified on Wednesday, March 12, 2008 12:19 PM

QuestionRe: This Validation Expression will work in firefox but not ie. How do I get it to work in IE? Pin
Muhammad Gouda12-Mar-08 5:42
Muhammad Gouda12-Mar-08 5:42 
GeneralRe: This Validation Expression will work in firefox but not ie. How do I get it to work in IE? Pin
Ali Chaudhry12-Mar-08 5:45
Ali Chaudhry12-Mar-08 5:45 
AnswerRe: Use your own code to validate Pin
Muhammad Gouda12-Mar-08 6:15
Muhammad Gouda12-Mar-08 6:15 
Generalemail error Pin
solarthur0112-Mar-08 4:55
solarthur0112-Mar-08 4:55 
Generalpicking subject from mail Pin
Azi Qaiser12-Mar-08 4:38
Azi Qaiser12-Mar-08 4:38 
GeneralRe: picking subject from mail Pin
Justin Perez12-Mar-08 5:28
Justin Perez12-Mar-08 5:28 
GeneralRe: picking subject from mail Pin
eyeseetee12-Mar-08 5:33
eyeseetee12-Mar-08 5:33 
GeneralRe: picking subject from mail Pin
James J. Foster12-Mar-08 5:41
James J. Foster12-Mar-08 5:41 
GeneralRe: picking subject from mail Pin
Christian Graus12-Mar-08 17:35
protectorChristian Graus12-Mar-08 17:35 
QuestionRadioButtonList won't show Pin
thomasa12-Mar-08 3:40
thomasa12-Mar-08 3:40 
GeneralRe: RadioButtonList won't show solution Pin
thomasa12-Mar-08 4:09
thomasa12-Mar-08 4:09 
GeneralConnection to database Pin
John.L.Ponratnam12-Mar-08 3:23
John.L.Ponratnam12-Mar-08 3:23 
GeneralRe: Connection to database Pin
J a a n s12-Mar-08 3:26
professionalJ a a n s12-Mar-08 3:26 
GeneralRe: Connection to database Pin
eyeseetee12-Mar-08 3:33
eyeseetee12-Mar-08 3:33 
Generalloop for textboxes Pin
eyeseetee12-Mar-08 1:45
eyeseetee12-Mar-08 1:45 
GeneralRe: loop for textboxes Pin
N a v a n e e t h12-Mar-08 1:47
N a v a n e e t h12-Mar-08 1:47 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 1:58
eyeseetee12-Mar-08 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.