Author Archive
Validate asp.net FileUpload control using JavaScript.
Posted by: | CommentsThis article explains about file upload control validation in JavaScript. By default when the user selects invalid format using the file upload control, the server control will not clear the content automatically. using the below code we can check the file extension and if it is not valid file extension then the textbox is cleared. This happens on the client side only using JavaScript.