Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All


I HAve MAke A Website of job portal in which i Am using a Cv load how i can get back same cv wiout changes it name given by user or job seeker
Posted
Updated 6-May-14 22:58pm
v2
Comments
Darshan.Pa 7-May-14 4:53am    
improve question so can help you and also provide more details
Vi(ky 7-May-14 4:59am    
Can you show your code ?

First Get the name of File by using
C#
string imgName=Path.GetFileName(SourcePath)
then you will get name of the file and use that file name while saving the file
like
C#
File.Move(sourcepath,destinationPath+"\\"+imgName)
 
Share this answer
 
Comments
irfanansari 7-May-14 5:18am    
like a user upload a doc file
i use a code to save it in a folder like cvfolder
then how i can see it when that same user come his account and he can find his cv same as he load on his Account
Brahmmam 7-May-14 5:25am    
you are saving user records in some table in database right?
if you save user records in users table
add one extra column for that table call it as CVpath and store full path of doc file which you have stored in cvfolder like
D:\\cvfolder\\mycv.doc

so that while user chicks on download button based on user id u can get path of doc file
irfanansari 7-May-14 5:53am    
and what will be Query will use in this when one user come back login in his account like user name abc password 123 and login and then he can see his cv same as he loaded before
Brahmmam 7-May-14 5:58am    
you can get the path by using following query

Select CVpath from Tablename where usename ="abc"
first you Upload that file to to folder inside the project and save the file in db , then retrieve the file using that name. when saving the file name check Repeating names in DB. Show the names of CV as links when click it ,



refer this

http://www.aspsnippets.com/Articles/Display-Word-document-on-web-page-in-ASP.Net.aspx[^]
 
Share this answer
 
Comments
irfanansari 7-May-14 5:29am    
as you reference this link there is just shows like convert file in html?

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