I am building a string in a web page based on criteria outlined in drop down controls. This sting will correspond with the name of a file that will be uploaded to a web folder through another process. If the process does not find the file it currently gives a 404 error. I would like to write an if statement in the code that if the file isn't there, then display another page. The current function to find the file is below.
" +yr.value + mth.value + day.value + typ.value + ".txt" ;