Author: Hyperdude | Posted on: 9/10/2009 8:21:10 PM | Views : 350

Hi,
In my website I allow user to upload the images. The images are suppose to be uploaded into 2 folders. One folder located in the root the other in another projects root. Currently I'm using the following code to do this.
ActivityLogoUpload.SaveAs(Server.MapPath("ActivityLogos/" & LogoName)) ActivityLogoUpload.SaveAs("C:\Documents and Settings\user\Desktop\MPSIP\Activity(Student)\ActivityLogos" & LogoName)) ActivityImageUpload.SaveAs(Server.MapPath("ActivityImages/" & ImageName)) ActivityImageUpload.SaveAs(Server.MapPath("C:\Documents and Settings\user\Desktop\MPSIP\Activity(Student)\ActivityImages" & ImageName))
How can I add the image to another project's root folder without setting the direct path?

...

Go to the complete details ...