locked
how to prevent custom control reformat that splits inner text across lines RRS feed

  • Question

  • User-2050257987 posted

    I have a custom control that contains a list of custom items.  The item has a text property which can be set from the inner text of the control declaration much like a hyperlink control.

    <pre:mycontrol>
       <pre:myitem>This is the inner text</pre:myitem>
    </pre:mycontrol>

    When I reformat an aspx doucment containing my control this occurs.

    <pre:mycontrol>
       <pre:myitem>
        This is the inner text
      </pre:myitem>
    </pre:mycontrol>

    The inner text of the control is split across several lines.  I want myitem to behave like an <asp:hyperlink> control which does not split the inner text when reformatted. Any ideas how to get this behavior?

    Wednesday, September 3, 2008 2:41 PM

Answers

  • User-60428002 posted

    i suggest that what you need is to open the reflector, and try to check the HyperLink control, and inside that control, you can know how to perform that.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 8, 2008 10:13 PM