| Member List |
| Posted: 16 Aug 2011 17:10 | ||
|
Registered User Currently Offline |
Posts: 80 Join Date: Aug 2011 |
|
|
To validate a file type or say file extension on client side before you upload a file can be performed by just putting a Regular Expression Validator. Here, i have provided one example to allow uploading only .jpg or .gif files. All you need is a FileUpload control and a Regular Expression Validator to check file type.
<asp:FileUpload ID=”FileUpload1″ runat=”server” /> <asp:RegularExpressionValidator ID=”RegularExpressionValidator1″ runat=”server” ControlToValidate=”FileUpload1″ Display=”Dynamic” ErrorMessage=”Upload a valid file” ValidationExpression=”^.+(.jpg|.JPG|.gif|.GIF)$”></asp:RegularExpressionValidator> If you want to put your own file type validation then just replace “.jpg,.JPG,.gif,.GIF” text, and you can add more file types by adding “|” (pipe) sign and your own file type to validate. source: hspinfo.wordpress.com/2008/06/18/client-side-validation-of-file-type-before-you-upload-a-file/ __________________ |
||
| Posted: 30 Aug 2011 01:30 | ||
|
Registered User Currently Offline |
Posts: 2 Join Date: Aug 2011 |
|
|
There are many free software which can make our computer as client computer and show the working of the project from our computer by mutual sharing our computers. This can help is fraud too. __________________ |
||