It's possible on client-side!
But, remember to do the server-side validation.
This two links show it:
http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20.all
http://www.codeshode.com/2011/07/validate-file-extension-for-aspnet.html