Last post Nov 20, 2008 09:53 AM by TATWORTH
Nov 15, 2008 10:14 PM|Codenote|LINK
Currently I have a script that allows the user to upload an image.
My script automatically thumbs the image. But upon thumbing the image I would like the thumbed image to be displayed to the user with-in the Web Browser. A sort of visual confirmation that their image was successfully uploaded.
So I figure I could either : Dynamically create the image object (whether it's an ASP image object or an HTML image object) ... I already know how to dynamically create the HTML image object, I just don't know how to reference it within ASP code, if at all
Any help is appreciated.
Nov 16, 2008 03:10 AM|Codenote|LINK
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");
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
Nov 20, 2008 09:53 AM|TATWORTH|LINK
>Well yippy... I figured it out before you guys could reply
Excellent! (This has happended to me several times!)
Please click the "Mark as Answer" against your second post, so we know the thread is answered.