virafh
asked on
FileUpload Control with javascript
Dear Friend,
i want to check the extension of the file when the user select the file by using the FileUpload control
i have javascript but i want it to call when the user select the file and after click on the open button.
so how can i call to javascript when the user select the file.
Thanks
i want to check the extension of the file when the user select the file by using the FileUpload control
i have javascript but i want it to call when the user select the file and after click on the open button.
so how can i call to javascript when the user select the file.
Thanks
i think this cannot be done with simple FILEUPLOAD control, you need to create a usercontrol which inhertis the fileupload control and perform client script actions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thankx ddayx10
your script is working
now i just want to blank the fileUpload textbox
how can i ?
your script is working
now i just want to blank the fileUpload textbox
how can i ?
ASKER
Thank You :)
ASKER
in firefox its not working
onpropertychange="fileChec k();"
if you know the solution please let me know
thanks
onpropertychange="fileChec
if you know the solution please let me know
thanks
ASKER
buddy i solved it, instead of onpropertychange i using onchange
thankx all of you
alert('not found')
else
alert('correct');
HTH
Ivo Stoykov