I am developing an ASP.NET application using C# and .Net Framework 4.0.
I employ the following statement to retrieve the value returned from a browse by the user:
txtFilename.Text = FileUpload2.PostedFile.FileName;
How would you compare the value contained in txtFilename.Text to ensure that it contains one of the following 4 values keeping in mind that txtFilename.Text is prefaced by a drive:
1) MonthlyChecks.txt 2) ML1.txt 3) OS_Mastfile.txt 4) ReversePositive.txt