User1371046470 posted
Well yippy... I figured it out before you guys could reply!
System.Web.UI.WebControls.Image imgControl = new System.Web.UI.WebControls.Image();
// The reason I had to declare the above using the entire NameSpace is because I've also included System.Drawing in my application.
HtmlGenericControl paraContainer = new HtmlGenericControl("p");
paraContainer.Controls.Add(imgControl);
PlaceHolder1.Controls.Add(paraContainer);
imgControl.ImageUrl = theurl;
imgControl.ImageAlign = System.Web.UI.WebControls.ImageAlign.Top;
imgControl.Height = theheight;
imgControl.Width = thewidth;
This is the code I had to finish off with. It's working so I'm happy ;P