Password Protected File Validation for(.doc/.docx/.xls/.xlsx/.pdf) file types protected void btnUpload_Click( object sender, EventArgs e) { //Check if File Upload control has file or not if (FileUpload1.HasFile) { //Get Uploaded file bytes var bytes = FileUpload1.FileBytes; //Get Uploaded File Extension FileInfo objFileInfo = new FileInfo (FileUpload1.FileNam...
Comments
Post a Comment