This example demonstrates how to validate an extention of selected file before uploading it to the server.

Only files with ".jpg", ".jpeg", ".gif" or ".png" extentions are allowed.
 



View C Sharp source code   View VB NET source code