Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2005, 02:03 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to faisal bashir Send a message via Yahoo to faisal bashir
Default 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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
Display Row No. yogeshyl SQL Language 6 July 7th, 2008 02:11 PM
display a line of text + image on front page nakori BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 June 9th, 2008 05:12 PM
UPDATING 1 row with another row in same table rit01 SQL Server 2000 3 February 19th, 2006 08:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.