UpdatePanel doesnt work with script manager. There is a postback happening for the code below. How do I do Ajax behavior?
<pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
    &lt;/asp:ScriptManager&gt;

&lt;asp:UpdatePanel ID="UpdatePanel" runat="server"&gt;
        &lt;ContentTemplate&gt;
            &lt;asp:Repeater ID="rpChat" runat="server" OnItemDataBound="rpChat_ItemDataBound" OnItemCommand="rpChat_ItemCommand"&gt;
                &lt;ItemTemplate&gt;
                    &lt;div id="divChatWindow" title='&lt;%# Eval("username") %&gt;' runat="server" class="clChatWindow"&gt;
                        &lt;div&gt;
                            &lt;asp:Label runat="server" Text='&lt;%# Eval("username") %&gt;' class="divHeader"&gt;&lt;/asp:Label&gt;
                            &lt;img src="../../Menu/close.jpg" onclick="HideDiv(this)" style="float: right; width: 20px;
                                height: 20px;" /&gt;&lt;/div&gt;
                        &lt;div class="chatText"&gt;
                            &lt;asp:Repeater ID="rpChatMessages" runat="server"&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Image ID="imageForFriend" runat="server" CssClass="clFriendsImage" ImageUrl='&lt;%# "HttpImageHandler.jpg?username=" +  DataBinder.Eval(Container.DataItem,"fromusername").ToString() %&gt;' /&gt;
                                    &lt;asp:Label ID="chatMessage" runat="server" Text='&lt;%# Eval("Message") %&gt;'&gt;&lt;/asp:Label&gt;
                                    &lt;br&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:Repeater&gt;
                        &lt;/div&gt;
                        &lt;asp:TextBox ID="txtChatMessage" runat="server" Width="115px"&gt;&lt;/asp:TextBox&gt;
                        &lt;asp:LinkButton ID="btnSendChat" runat="server" CommandName="Insert" CommandArgument='&lt;%# Eval("username") %&gt;'&gt;Send&lt;/asp:LinkButton&gt;
                    &lt;/div&gt;
                &lt;/ItemTemplate&gt;
            &lt;/asp:Repeater&gt;
        &lt;/ContentTemplate&gt;
    &lt;/asp:UpdatePanel&gt;
</code></pre>

<p>I have edited the code... Now what should I do? I have the linkbutton inside contenttemplate. Still a postback is happening</p>
