asp.net: Use javascript set lable value but it doesn't save
<p>This is my code:</p>

<pre><code>&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
    &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
    &lt;input type="button" onclick="ontextchange();" /&gt;

    &lt;asp:Button ID="Button1" runat="server"
        Text="Button" onclick="Button1_Click" /&gt;
&lt;/div&gt;
</code></pre>

<p></p>

<hr>

<pre><code>function ontextchange() {

         document.getElementById("Label1").innerText="New";

    }
</code></pre>

<hr>

<p>The problem is: I can change the lable value via javascript, but when I click the Button1, the lable value become the first one "Label". How can I get the new value when I click the asp.net button?</p>
