Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,

i am using an file upload control and on hitting the upload button after choosing the file the file name disappears and "no file choosen tag" remains there how can i retain it? please advice
Posted
Comments
Sandeep Mewara 23-May-12 11:05am    
What's the point of repost? See my answer at other place: http://www.codeproject.com/Questions/390311/retain-the-file-upload-control-filename-on-post-ba

please add one another button for save.
at click event of save button save the file..........
 
Share this answer
 
Hi,

to maintain name of file u need to use HiddenField. this can help u

Best Luck
 
Share this answer
 
Comments
manashsatpathy 23-May-12 8:37am    
i am using session where i am getting the value but some who i am not able to assign it to the page control
Nilesh Patil Kolhapur 23-May-12 8:45am    
Dont use Session its heavy use HiddenField it is a control u can easily handle it on page

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