Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
1.11/5 (3 votes)
See more:
sir, i amd using Fileupload button. i need that when i click i browse it and select a file. then selected file name also show in a textbox also. how can i do it.
Posted
Updated 26-Aug-14 19:35pm
Comments
ChintanShukla 26-Aug-14 8:29am    
While posting file on file upload control you cannot do this. There are no method associated.
once file is posted you can have another Submit button, on click of that you can use Fileupload.FileName property and bind value

1 solution

 
Share this answer
 
Comments
TCS54321 26-Aug-14 8:18am    
i am using only fileupload button. how can i call a mathod to click on fileupload button
Ok then you can do one thing. Just handle the onchange JavaScript Event of the FileUpload Control. Inside that event, you will get the file name, because FileUpload is rendered as input.
TCS54321 26-Aug-14 9:44am    
not working
What have you tried? Did you debug the code?
TCS54321 27-Aug-14 1:23am    
yes.. but its not working

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