G
Guest
Hi,
I plan to use panel to store multiple HTML text in a web form page, here is
the code snippet that add HTML into panel:
Dim lit1 As New Literal
lit1.Text = strHTML
Panel1.Controls.Add(lit1)
The problem I have is , all literal controls I added into Panel1.Controls
are lost during the postback. Is there a way to overcome this?
I have another question somehow related to this one. How do I determine the
type at runtime, the following code snippet does not work:
If Panel1.Controls(i).GetType = LiteralConrol Then
TIA
I plan to use panel to store multiple HTML text in a web form page, here is
the code snippet that add HTML into panel:
Dim lit1 As New Literal
lit1.Text = strHTML
Panel1.Controls.Add(lit1)
The problem I have is , all literal controls I added into Panel1.Controls
are lost during the postback. Is there a way to overcome this?
I have another question somehow related to this one. How do I determine the
type at runtime, the following code snippet does not work:
If Panel1.Controls(i).GetType = LiteralConrol Then
TIA