Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Beginner: How to show an image?

Vote:
 
Hello, I can not figure out how to show an image / produce the required -tag. I have added a property "Url to image" to my page type. Selected a image that i would like to show but how do I show in in the resulting HTML page? I try with: But it produces a link to the image. Best regards, Perry Jönsson
#12905
Jan 22, 2007 16:59
Vote:
 
There are a lot of different ways to do this. One is: (Requires a databind. You can replace # with = if you don't) Another is: In page_load if (!IsPostBack) { Img.ImageUrl = CurrentPage.Property["CenterPicture"].ToString(); }
#15074
Jan 23, 2007 2:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.