Solved

label won'ty wrap text in a table cell

Posted on 2009-07-07
2
735 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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