ImageURL
FileUpload
public partial class ImageDynamic : System.Web.UI.Page { protected void Button2_Click(object sender, EventArgs e) { Control MyUserControl = LoadControl("MyControl.ascx"); PlaceHolder1.Controls.Add(MyUserControl); } }
Image MyImage = (Image)MyUserControl.FindControl("ImageControlID"); MyImage.ImageUrl = "ImagePath";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)