troubleshooting Question

I need help with a RequiredFieldValidator control in 3.5

Avatar of mainrotor
mainrotor asked on
ASP.NET.NET ProgrammingVisual Basic.NET
9 Comments1 Solution296 ViewsLast Modified:
Hi Experts,
I need assistance using a RequiredFieldValidator control in my ASP.Net 3.5 application.  Currently the RequiredFieldValidator is checking to see if the file selected in my FileUpload control contains the words 'Year', and 'Report' in it (see attached code).  

I want the RequiredFieldValidator to make sure (validate) that the file selected in my FileUpload control also contains my DropDownList control's text value (DropDownList.SelectedItem.Text).  How can I do this?

Thanks in advance,

ID="RegularExpressionValidator1" runat="server"
ErrorMessage="Incorrect PSBD12 File."
ValidationExpression="^(?=.*?Year)(?=.*?PSBD12).*$" Font-Names="Arial" Font-Size="X-Small"/>

Open in new window


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros