Hi
I just want to know how to display the Image Upload with currently image then remove image how will do this??
Thanks:)
roXy101208
0
Newbie Poster
Recommended Answers
Jump to PostFirst of all save that (uploaded) image file at your server machine and to show an image set ImageUrl property of Image control.
if(FileUpload1.HasFile){ string absolute_path=MapPath("~/" + FileUpload1.FileName); string relative_path="~/" + FileUpload1.FileName; FileUpload1.SaveAs(absolute_path); Image1.ImageUrl=relative_path; }
All 3 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
roXy101208
0
Newbie Poster
roXy101208
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.