Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i got 1 gridview which has hyperlink in one column, wen the user clicks the link he will be directed to another page where the details of particular row will be displayed using individual labels. In those labels one of the label must be multilined for me coz the text will be too long...

Please help me how to get that .

aspx page of label



XML
<asp:Label ID="LblDescription" runat="server"
            Font-Bold="True" Font-Names="Verdana"
            Font-Size="X-Small" ForeColor="#0061C1" Height="16px"
            Width="97px" BorderColor="#0061C1"
            BorderWidth="1px" BackColor="White"></asp:Label>
Posted
Comments
s_rao88 9-Jul-13 2:05am    
can anybody say me why d hel this was downvoted

1 solution

i got the solution... by adding style="word-wrap:break-word;" to label and removing the height property of label can achieve tht

XML
<asp:Label ID="LblDescription" runat="server"
            Font-Bold="True" Font-Names="Verdana"
            Font-Size="X-Small" ForeColor="#0061C1" Height="16px"
            Width="97px" BorderColor="#0061C1"
            BorderWidth="1px" style="word-wrap:break-word;"  BackColor="White"></asp:Label>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900