T
The Alchemist
The 'Render' method of a Web Custom Control takes an argument 'output'
of type System.Web.UI.HtmlTextWriter. This HtmlTextWriter renders any
content in the 'Render' method.
I am trying to render the content of my control in ANOTHER method.
When I try to create a new HtmlTextWriter in that method with the
code:
Dim writer As New StringWriter
Dim output2 As New HtmlTextWriter(writer)
output2.Write("TEST")
....it does nothing. This method is being called by another control to
in order to render some content. Can someone please advise how I can
render content from a custom method in a Web Custom Control.
Thanks in advance for any help.
of type System.Web.UI.HtmlTextWriter. This HtmlTextWriter renders any
content in the 'Render' method.
I am trying to render the content of my control in ANOTHER method.
When I try to create a new HtmlTextWriter in that method with the
code:
Dim writer As New StringWriter
Dim output2 As New HtmlTextWriter(writer)
output2.Write("TEST")
....it does nothing. This method is being called by another control to
in order to render some content. Can someone please advise how I can
render content from a custom method in a Web Custom Control.
Thanks in advance for any help.