if (FileUpload1.PostedFile.ContentType.ToLower() == "application/pdf") { //Your code } else { //Display message that pdf file not selected. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)