Last post Apr 04, 2008 09:20 AM by SGWellens
Apr 03, 2008 11:35 PM|aspwonderkid|LINK
Is there anyway where i can place a small icon on the image. I have the co ordinates of the image. I need to place this icon on a co ordinate which i will be retriving from the database.
For Eg: I have a image of 10 buildings. I will retrieve data of a one building & place a icon on that building.
Apr 04, 2008 09:20 AM|SGWellens|LINK
If this is for display only and you don't need to alter the underlying image, you can use two image controls with the proper Z-Index:
<asp:Image ID="Image1" runat="server" ImageUrl="~/Untitled.jpg"
Style="z-index: 1; left: 100px; top: 100px; position: absolute"></asp:Image>
<asp:Image ID="Image2" runat="server" ImageUrl="~/COMPUTER1.png"
Style="z-index: 2; left: 200px; top: 200px; position: absolute"></asp:Image>
You can move the icon like this:
protected void Button1_Click(object sender, EventArgs e)
Image2.Style["top"] = "300px";
Image2.Style["left"] = "300px";