Hi
I just want to know how to display the Image Upload with currently image then remove image how will do this??
Thanks:)

First 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;
 }

Thanks! another thing I want to know how to code the delete button after I upload the picture if I want to delete and set as primary photo that. how can i do that?

Thanks! another thing I want to know how to code the delete button after I upload the picture if I want to delete and set as primary photo that. how can i do that?

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.