Thanks for the Q and here is tha ans
<asp:LinkButton ID="lnkbProjects" runat="server"
OnClientClick="work(this);">Home</asp:LinkButton>
<asp:LinkButton ID="lnkbDocuments" runat="server"
OnClientClick="work(this);">Section</asp:LinkButton>
<asp:LinkButton ID="lnkbItems" runat="server"
OnClientClick="work(this);" >Class</asp:LinkButton>
<asp:HiddenField ID="hidlabel" runat="server" Value="I am old value" />
<script type="text/javascript">
function work(getval)
{
document.getElementById('hidlabel').value=
document.getElementById(getval.id).innerText;
}
</script>