Click here to Skip to main content
15,888,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
FileUpload1.SaveAs(@"D:\.......\Business\images\Upload\" + FileUpload1.FileName);

so
i want like http://localhost/......../Upload/aaa.gif
Posted
Comments
OriginalGriff 15-Jul-11 5:43am    
Sorry?
Would you care to try explaining that in terms that a user who doesn't have access you your computer can understand?
Use the "Improve question" widget to edit your question and provide better information.
Richard MacCutchan 15-Jul-11 5:52am    
Try using your editor.
Jephunneh Malazarte 15-Jul-11 8:17am    
md - do you wan't to save to your database the http path of the image instead of your local drive?
Herman<T>.Instance 18-Jul-11 4:36am    
why don't you store the relative path?

1 solution

You cna't save to a URL, you need to save to the local file system. You can use Server.MapPath to get the URL from the local file path, to store in your DB.
 
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