Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

label won'ty wrap text in a table cell

Posted on 2009-07-07
2
Medium Priority
?
743 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 1500 total points
ID: 24799374
try this:  

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

772 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