S
simonZ
I have <div id="divTbl" runat="server" enableviewstate="true"> control on my
asp.net page.
Than I add some html elements into this div element with javascript on
client side:
<script language="javascript">
var divAdd=document.createElement("div");
divAdd.id="divTest";
divAdd.innerText="test";
var divTbl=document.getElementById("<%=divTbl.ClientID%>");
divTbl.appendChild(divAdd);
</script>
On client it works, I can see new elements in my div element.
But when I post back my page, the divTbl.InnerHtml is empty.
Why and how can I do this?
Regards,
Simon
asp.net page.
Than I add some html elements into this div element with javascript on
client side:
<script language="javascript">
var divAdd=document.createElement("div");
divAdd.id="divTest";
divAdd.innerText="test";
var divTbl=document.getElementById("<%=divTbl.ClientID%>");
divTbl.appendChild(divAdd);
</script>
On client it works, I can see new elements in my div element.
But when I post back my page, the divTbl.InnerHtml is empty.
Why and how can I do this?
Regards,
Simon