<br /> of label in code behind RRS feed

  • Question

  • User1405629129 posted


    I wrote code in code behind and tried to output few sentences mixed with <br /> tags through a label mobile control.  Somehow when I viewed it on mobile browser, it just showed exact <br /> on screen.  I found that <br /> was automatically escaped.  Does anyone know how to solve it?

    Here is my code in aspx.vb:

    1    lblMessage.Text = "Hello " & _
    2                      "<br /> world!"
    And my code in aspx:
    1    <mobile:Label ID="lblMessage" runat="server" />   

    Your help will be appreciated!  Many thanks!



    Thursday, April 19, 2007 12:10 AM

All replies

  • User731069546 posted
    I don't think Mobile Label control supports any HTML tags. Only TextView mobile control does it.
    Thursday, April 19, 2007 11:36 AM