Click here to Skip to main content
15,888,224 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 6 file upload tools in my asp.net 'update.aspx' page.when I am open this page for updating the detail of user if data already present for that user which is login the is automatically fill in text boxs and 'file upload'

I have done code for text box by using data table.But I didn't find a solution for file upload

Please suggest..

What I have tried:

I have done this for textbox.

Name.text=dt.Rows[0]["name"].toString();

Please give me solutions for file upload
Posted
Updated 30-May-16 0:11am
Comments
Karthik_Mahalingam 29-May-16 4:54am    
what is the need to implement this ?
do they upload once again without selecting the file ?
Vivek p singh 29-May-16 5:46am    
Yes,when user want to change the file then only he is select file.If he don't then load by default into file upload
Karthik_Mahalingam 29-May-16 7:16am    
so each time it will upload the same file ?
what is the need?
Vivek p singh 29-May-16 9:20am    
If I am a user students I am insert all data I.e my results photos of all education.when I was login next time after inserting my all data all data should be appeared in my textboxes and 'file upload

If you are using text(varchar()) data type to store these file(educational document Images). Means we can store these files in folder and path of these files in table.
Then you can use image control to show these uploaded files for next and more logins.
We can retrieve file path from table and assign to imageurl field of image control.
 
Share this answer
 
You can't specify a default value for the file upload for security reasons.
 
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