HI,
use
innerText
to assign values to the label control in javascript
document.getElementById('lblIP').innerText = "some";
in asp.net you cannot get the values of label control in code behind which is updated in the client side ( ie javascript )
simple way is you can use hidden field
to store the values in the javascript and you can read the same in the code behind.
example:
whenever u r assigning a value to the label, update the corresponding hidden field as well
document.getElementById('lblIP').innerText = "some";
document.getElementById('hdn_lblIP').value = "some";
create a hidden control in your page..
<asp:HiddenField ID="hdn_lblIP" runat="server" />
in the server ( code behind ) you can read like this
string ipvalue = hdn_lblIP.Value;
hope you understood.