Posted on: 5/9/2011 5:49:15 AM | Views : 222

Hi,
i have wrote a validation method of checking if the uploaded file is .doc, .docx or .txt,
if it is not, error msg will be return.
But so far none of the three file extension is acceptable.
This is my code:
If String.Compare(extension, ".doc", False) Or Not extension.Equals(".docx") Or extension <> ".txt" Then lblhidresume.Text = "File is not document type or unacceptable file format. " & _ "Please note that only doc, docx, and txt file is acceptable." End If Please help
...

Go to the complete details ...