Hey all
I have an application that lets the use upload a pdf, I wanted to put a limit on the size the pdf can be. If the user tried to upload something too big I wanted to display a message to the user. I am trying to use a custom validator where it checks the size of the file and if it is too big it will set the "IsValid" to false. Is this the correct way to go about doing this? Is there a better way? When I test it, everything works in IE 8 and FF, but it does not work in IE 7 and can't figure out why.
Here is what I have so far, this is on my aspx page:
<tr>
<td>Upload Board Book PDF:</td>
<td class="required">*</td>
<td><asp:FileUpload runat="server" ID="PdfFileUpload" /></td>
<td>
<asp:RequiredFieldValidator runat="server" ControlToValidate="PdfFileUpload" ErrorMessage=& ...
Go to the complete details ...