S
sling blade
Hello,
I am trying to get the innerHTML method to work but I am not getting
any output.
Here is my code:
(Code behind)
Dim display as New HtmlGenericControl
Dim strResultsHolder As String
strResultsHolder = "<table><tr><td>Hello World</td></tr></table>"
display.InnerHtml = strResultsHolder
(The HTML section of my form)
<div id=display runat=server> </div>
(end HTML section)
Can someone please tell me if this is correct? I am wondering how I
specifically reference the div id (display).
I have given it a HtmlGenericControl datatype in the code behind but is
that good enough to point it to the div id of the same name in the
form?
In all of the samples I can google not one has specifically referenced
the HtmlGenerciControl class in the code. They all say to do it but
don't actually show it being done.
Can someone say if this is correct or how to do it?
Thanks
I am trying to get the innerHTML method to work but I am not getting
any output.
Here is my code:
(Code behind)
Dim display as New HtmlGenericControl
Dim strResultsHolder As String
strResultsHolder = "<table><tr><td>Hello World</td></tr></table>"
display.InnerHtml = strResultsHolder
(The HTML section of my form)
<div id=display runat=server> </div>
(end HTML section)
Can someone please tell me if this is correct? I am wondering how I
specifically reference the div id (display).
I have given it a HtmlGenericControl datatype in the code behind but is
that good enough to point it to the div id of the same name in the
form?
In all of the samples I can google not one has specifically referenced
the HtmlGenerciControl class in the code. They all say to do it but
don't actually show it being done.
Can someone say if this is correct or how to do it?
Thanks