accessing client side source from server side
-
Hi, I'm trying to access client side innerhtml code from server side on postback. How do I do it. I've tried putting a div server tag around the code i need, and then saying divContent.innerhtml, but it doesn't work. Any suggestions? Thanx
Regards, Tintin
-
Hi, I'm trying to access client side innerhtml code from server side on postback. How do I do it. I've tried putting a div server tag around the code i need, and then saying divContent.innerhtml, but it doesn't work. Any suggestions? Thanx
Regards, Tintin
Hello... You can put a
and make the
runat=server and put all your client code in that
. Eg :-
Help Out
In code behind adding this TbMain.InnerText.ToString() You will get the complete table block from the
i.e
Help Out
Let me knw, if you r looking for something else will try to help you out.
"Walking on water and developing Software on a specification is easy, if both are frozen..."
-
Hello... You can put a
and make the
runat=server and put all your client code in that
. Eg :-
Help Out
In code behind adding this TbMain.InnerText.ToString() You will get the complete table block from the
i.e
Help Out
Let me knw, if you r looking for something else will try to help you out.
"Walking on water and developing Software on a specification is easy, if both are frozen..."
No, .innerhtml doesn't seem to work. I've tried it with a
no success. However, putting in a hidden server field, and getting the innerhtml from the div in javascript works, BUT I get an "UNKNOWN ERROR" popup-window when trying to set the hid1.value = div's inner html! I tried setting .value = 'test'; WORKS FINE Why is that '''''heres some code'''' var strHTML = ""; strHTML = document.getElementById('<%=divTables.ClientID% ').innerHTML.toString(); alert(strHTML); //just a test document.getElementById('<%=hid1.ClientID%>').value = strHTML.toString(); //then it breaks. but if its a different string, it works please help
Regards, Tintin