Solved

label won'ty wrap text in a table cell

Posted on 2009-07-07
2
736 Views
Last Modified: 2012-05-07
Hello,

I have a label placed in a table cell that is dynamically generated. When the code is run, the text jut stacks on top of itself. I don't know what to do. Please help. I'm attaching an image which shows the result. Thanks for your help.
If SDR.Item("Pet_Comments") IsNot DBNull.Value Then
                    .pet.Text = SDR.Item("Pet_Comments")
                    .pet_comments.Visible = True
                   
                End If
 
 
 
<td colspan="2" id="pet_comments" runat="server" style="width:100%"  >Pet
                                    Comments:<asp:Label ID="pet" runat="server" ForeColor="#314a84" style="width:100%" /></td>
                                </tr>
                            </table></td>

Open in new window

text.jpg
0
Comment
Question by:ad3408
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 24799149
try removing id="pet_comments" from TD and see what happens, seems like a CSS problem.
0
 
LVL 8

Accepted Solution

by:
MrAgile earned 500 total points
ID: 24799374
try this:  

Comments:<asp:Label ID="pet" runat="server" ForeColor="#314a84" style="width:100%;white-space:nowrap;" />
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question