Click here to Skip to main content
16,012,107 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear sir,

please help me...

How to validate file upload control from templatefield button in gridview using javascript? (these two controls are having inside GridView Controls).

How can validate this???

Note: Access only Image file formats then it will Return true. otherwise(Other formats) return false.

By Mohan
Posted
Comments
Herman<T>.Instance 13-Feb-12 8:43am    
maybe show code? Now it is guessing what your problem is and which events you use

1 solution

I don't believe you can interact with the upload control in javascript, for security purposes. I think all you can do, is recieve the file on the server. But, I could be wrong, and in general, you assign your controls a meaningful id so you can use javascript to find them and interact with them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900