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
Solved

label won'ty wrap text in a table cell

Posted on 2009-07-07
2
732 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…

789 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