I am new in asp, net and developing a project for my parties .for that I am doing a example in which I have two textboxes, one label and  one button .
I am saving Textbox1  value in a variable and then show into other  Textbox this is work fine but now I want I show that variable  value into a label but I cannot do that following my function .
This code work fine when I show value in Textbox but it cann’t work when it show’s into a label.
<script type = "text/javascript">
      function show() {
          var txtName = document.getElementById("txtName");
          var txtOutput = document.getElementById("txtOutput");
          var name = txtName.value;
          txtOutput.value = name
      } 
 </script>
 
TextBoxes  button and label..
<input type = "button" value = "click me" onclick = "show()"/>
  <input type = "text" id = "txtOutput" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
thanks in advanced