locked
replacement for label if possible or solution available for using label RRS feed

  • Question

  • User702049738 posted

    Hello expert;

    I have a label with the output as followings

    <asp:Label ID = "lbltest" runat ="server" CssClass="text_style"> <%# Eval("summary")%></asp:Label>

    the summary information is quite long...how do i wrap it.

    thanks in advance

    Monday, May 21, 2018 8:31 PM

Answers

  • User2103319870 posted

    Try applying below css style to your label control

     <asp:Label Text="This is  long text This is  long text This is  long text This is  long text This is  long text "
                Width="100px" runat="server" Style="word-wrap: normal; word-break: break-all;" ></asp:Label>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 21, 2018 8:37 PM