Is there a way I can display a message box saying that the file uploaded is greater than 4 MB. the following code in the code behind cs file does not work
if (FileUploader.PostedFile.ContentType == "application/pdf" && FileUploader.PostedFile.ContentLength < 4000000)
{