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,
ErrorMessage="Incorrect PSBD12 File."
ValidationExpression="^(?=.*?Year)(?=.*?PSBD12).*$" Font-Names="Arial" Font-Size="X-Small"/>