add texts and images on a image

Please, help me.

I'm using 2.0. 

I have a problem that: I have an weather background image. I need to add text (like temperature) and 'icon image' (like rainy, sunny ..) on background image. I don't want to use Graphics object to draw text on background.

  It looks like this page:

I'm thinking about using divs on div.

If is there anyway to do it, or a custom control, please show me. 

Thanks in advances.

2/18/2008 4:03:32 AM 91979 articles. 4 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 31

Hello To do so

 Add a Div Tag

Set the style property and set the background image of the Div Tag

Inside the Div  tag add the Image control of to show the icon

Set the Alternate text property of image control to show the text

here is the sample code

<div style="width: 274px; height: 226px;background-image:'logo.jpg'">

<asp:Image ID="Image1" runat="server" AlternateText="Sample Text" ImageUrl="~/Nitu/Extra/logo1.jpg" /></div>


2/18/2008 5:49:41 AM

Try to insert a div. Then set the weatger image as div background. So now you can append any thing within div object programetically/hardcoded. Also you can change runtime the div ground.

Shawpnendu Bikash Maloroy
2/18/2008 5:50:51 AM


There is a sample for your purpose. It will lead you how to retrieve the weather information and how to create weather image and temperature text.

You can get the weather information via web service

Another regarding link is

Hope it helps.

Vince Xu
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
2/19/2008 4:59:16 AM

Thank you very much. Especial to Vince Xu - MSFT.

2/19/2008 6:50:28 AM