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

i tried to upload a file from Admin end, i tried to implement it using a code given in the Code Project but I feel some difficulty while doing this. I just want to upload an image using a simple code. please helps......
Posted
Comments
ridoy 28-Dec-12 6:15am    
what problem you face?

Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
Share this answer
 
C#
if (FileUpload1.PostedFile.ContentLength != 0)
     {
         string temp = Server.MapPath(@"images\";);
         string path = temp + "hemant.jpg";
         FileUpload1.SaveAs(path);
      }



For Detail Help
Develoeprs Blog[^]
Hemant Singh Rautela
 
Share this answer
 
hey refer below links.
Link 1[^]
Link 2[^]
Link 3[^]
 
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