Posted on: 5/16/2013 1:34:32 PM | Views : 242

        if (fluTypeCheck.HasFile)         {             string strExt = System.IO.Path.GetExtension(fluTypeCheck.FileName);             string strPath = fluTypeCheck.PostedFile.FileName.ToString();             if (System.IO.File.ReadAllText(strPath).Contains("%PDF-1"))             {                 Response.Write("<script>alert('Its a Pdf')</script>");
            }             if (System.IO.File.ReadAllText(strPath).Contains("\x4D\x5A& ...

Go to the complete details ...