protected void Button1_Click(object sender, EventArgs e) { string str=FileUpload1.FileName; string path=Server.MapPath("image"); string fulpath=path + "\\" + str; FileUpload1.PostedFile.SaveAs(fulpath); Image img = new Image(); Page.Form.Controls.Add(img); img.ImageUrl = Server.MapPath(str); }
Server.MapPath(str)
img.ImageUrl = fulpath;
img.ImageUrl = FileUpload1.PostedFile;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)