Javascript Incrementer
<pre><code>&lt;script type="text/javascript"&gt;
function Incrementer()
{
    debugger;
    var txtBox = document.getElementById('MainContent_TextBox1').value;
    int i = parseInt(txtBox);
    i = i + 1;
    var v = i + "";
    document.getElementById('MainContent_TextBox1').value = v;
   alert(v);
}

&lt;/script&gt;
    &lt;asp:TextBox ID="TextBox1" runat="server" Text="0"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
    &lt;asp:Button ID="Button1"  runat="server" Text="Up"  OnClientClick="Incrementer();"/&gt;
    &lt;asp:Button ID="Button2" Text="Down" runat="server"/&gt;
    &lt;/asp:Content&gt;
</code></pre>

<p>I am unable to increment the value in javascript....what is the problem?</p>
