Put This in your head tag
<script type="text/javascript">
function callit() {
var ele = document.getElementById("hiddenfield");
var x = parseInt(ele.value) + 1;
document.getElementById("hiddenfield").value = x;
$("#<%=Label1.ClientID %>").text(x);
}
</script>
put follwoing in your body tag
<input type="hidden" id="hiddenfield" value="0"/>
<asp:Label ID="Label1" runat="server" Text="hello"></asp:Label>
<div id="MyDiv">This is my div</div>
<input id="Button2" type="button" onclick="callit()" value="button" />