UserControl issue!
<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %&gt;

&lt;script type="text/javascript"&gt;
    function Incrementer() {
        var txtBox = document.getElementById('MainContent_TextBox1').value;

        var i = parseInt(txtBox);
        i = i + 1;
        var v = i + "";
        document.getElementById('MainContent_TextBox1').value = v;
        return false;
    }
    function Decrementer() {
        var txtBox = document.getElementById('MainContent_TextBox1').value;

        var i = parseInt(txtBox);
        i = i - 1;
        var v = i + "";
        document.getElementById('MainContent_TextBox1').value = v;
        return false;
    }

&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="return Incrementer();"/&gt;
    &lt;asp:Button ID="Button2" Text="Down" runat="server" OnClientClick="return Decrementer();"/&gt;
</code></pre>

<p>Default.aspx as follows:-</p>

<pre><code>&lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;
    &lt;%@ Register Src="~/WebUserControl.ascx" TagName="IncrementerUserControl" TagPrefix="uc1" %&gt;
&lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&gt;

&lt;uc1:IncrementerUserControl ID="Incrementer1" runat="server"/&gt;
    &lt;/asp:Content&gt;
</code></pre>

<p>The incrementer now doesnt work because i have included it in the usercontrol.If I use the incrementer and decrementer without user control it works fine.Help!</p>
