S
Scott M.
I'm not sure where I should be placing the code that creates my literal
controls. They are rendering but AFTER the close of the HTML tag.
I've tried Load, Init, PreLoad, PreInit, PreRender and get the same result
each time:
Example code:
Controls.Add(New LiteralControl("<div>"))
Dim lblItem As New Label
lblItem.Text = ("<p>") & item.Element("title").Value
lblItem.Font.Bold = True
lblItem.Style.Item("display") = "block"
lblItem.Style.Item("width") = "350px"
Controls.Add(lblItem)
controls. They are rendering but AFTER the close of the HTML tag.
I've tried Load, Init, PreLoad, PreInit, PreRender and get the same result
each time:
Example code:
Controls.Add(New LiteralControl("<div>"))
Dim lblItem As New Label
lblItem.Text = ("<p>") & item.Element("title").Value
lblItem.Font.Bold = True
lblItem.Style.Item("display") = "block"
lblItem.Style.Item("width") = "350px"
Controls.Add(lblItem)