I have a successful javascript that make my Label1 to display a width value:-
[js]
<script type="text/javascript">
function GetWidth() {
var gridView = document.getElementById("<%=GridView1.ClientID %>");
document.getElementById("<%=Label1.ClientID %>").textContent = gridView.offsetWidth;
return false;}
</script>
Now Label1 is displaying say "88" on page.
Then, I want to reuse this 88 to do something. To simplify, I just want to reuse this 88 and display it in Label2.
So I write this code in buttonclick event
Label2.Text = Label1.Text.
However, once I click, the Label1 value "88" displaying on page reset back to "Label ...
Go to the complete details ...