asp.net ajax Partial rendering not working
<p>I'm trying to do some ajax code but am failing miserably,the code below works</p>

<pre><code>&lt;asp:ScriptManager  ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt;
&lt;tr&gt;
 &lt;td&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
   &lt;ContentTemplate&gt;
     &lt;asp:Label ID="Label1" runat="server" Text="This is a label!"&gt;&lt;/asp:Label&gt;
     &lt;asp:Button ID="Button1" runat="server" Text="Click Me" OnClick="Button1_Click" /&gt;                 
   &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
 &lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>But if i was to change the code like below,partial rendering of the page doesn't work</p>

<pre><code>&lt;asp:ScriptManager  ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt;
&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
&lt;ContentTemplate&gt;
&lt;tr&gt;
     &lt;td&gt;
         &lt;asp:Label ID="Label1" runat="server" Text="This is a label!"&gt;&lt;/asp:Label&gt;
         &lt;asp:Button ID="Button1" runat="server" Text="Click Me" OnClick="Button1_Click" /&gt;                 
&lt;/td&gt;
&lt;/tr&gt;
&lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Could someone please look into the code and tell me if im doing something wrong</p>
