Hi!
I'm trying to intsert an image to a Windows Form > Webpage project. I tried to insert an Image control to webpage and assign the image to the control:
- Image1.ImageUrl = "1.jpg";
And I tried creating the Image on the run, and asignning it the jpg image:
- Image image = new Image();
- image.ID = "image1";
- image.ImageUrl = "1.jpg";
- image.ImageAlign = ImageAlign.AbsMiddle;
- image.Visible = true;
-
- Form.Controls.Add(image);
Nothing worked so far. What I'm doing wrong? (Images are both in bin and the project directories)
Thank you.