how to display image and text in a same table row
Hi EveryBody,
I want to display an image and some text in the same row of a table by using code behind in ASP.NET.
I want to do it so that the text flows on the right side and below the image.
Previously I did it in ASP by using <td><img src='<% ../images/sunset.gif %>'> and then text in between which goes right and below the image</td>
I want to do the same thing in ASP.NET in codebehind.
I have used an <asp:Image id="pictureimage" runat="server" />
and <asp:Label id="imagedetail" runat="server" />
in the same td and i can manipulate them in code behind dynamically but the image and text go side by side vertically.
I know how to make table rows/cells in code behind dynamically and can also add Literal controls(text messages), but the problem is how to add an image and text in the same cell or td of a table.
Please some one help me in this regard.
Thanks.
|