locked
Best way to insert a BR RRS feed

  • Question

  • User-1686683459 posted

    Regarding formatting what is the best way to insert a generic piece of html without defining a control for every <br> and <hr> ....  I'd love to be able to do a container.controls.add(htmlgeneric("br")); or the like.  Yet it defies me still.  [:@]

    My thanks in advance,

    Monday, June 9, 2008 5:18 PM

Answers

  • User-158764254 posted

    how about usng a LiteralControl

    Me.Controls.Add(New LiteralControl("<br />foo<br />"))

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2008 8:48 PM

All replies

  • User-158764254 posted

    how about usng a LiteralControl

    Me.Controls.Add(New LiteralControl("<br />foo<br />"))

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2008 8:48 PM
  • User-1686683459 posted

    Argh!  This is what I thought I could do except I was trying to use Controls.Add(New Literal("<br />foo<br />")) wondewring why I couldn't assign the text ....  Devil is in the details. [8-|]

    Thanks,

    Tuesday, June 10, 2008 11:54 AM