Problem with file uploader
How to prevent user from entering the character in a file uploader control
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Jan 2, 2010, 6:47 AM
Each Line Add Attribute to FileUpload Control ... so at each event like keypress etc java script prevent user to enter any thing ..in file upload :)
LalChandPosted Jan 2, 2010, 4:16 AM
fuFile.Attributes.Add("onkeypress", "return false;");
fuFile.Attributes.Add("onkeyup", "return false;");
fuFile.Attributes.Add("onpaste", "return false;");