I want to make replace the image in the edit form, this code that I use in the form to upload the image to create a path and URL are saved to a database, what should be changed so that the code I can use to replace the image in the edit form? Please help me

var image = WebImage.GetImageFromRequest();
            var filename = Path.GetFileName(image.FileName);
            var path = Path.Combine(Server.MapPath("~/Content/upload"),filename);
            orgObj.AvatarUrl = Url.Content(Path.Combine("/Content/upload", filename));

Related posts

Recent Viewed