Reputation: 11
<asp:UpdatePanel ID="updatePanel" runat="server">
<ContentTemplate>
<asp:Repeater ID="rptrtest" runat="server" OnItemCommand="rptrtest_ItemCommand" OnItemDataBound="rptrtest_ItemDataBound">
<div> <asp:TextBox ID="txtName" runat="server"/> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" > </asp:Button>
</div>
</asp:Repeater>
</ContentTemplate>
</asp:UpdatePanel>
on button click event i'm sending name to another usercontrol in same page.
i'm having repeater inside update panel this whole thing in one usercontrol my problem when i click submit button inside repeater there is no Asynchronous post back happening please any one help.
Upvotes: 1
Views: 2048
Reputation: 30855
Your repeater is missing the ItemTemplate tag
<asp:UpdatePanel ID="updatePanel" runat="server">
<ContentTemplate>
<asp:Repeater ID="rptrtest" runat="server" OnItemCommand="rptrtest_ItemCommand" OnItemDataBound="rptrtest_ItemDataBound">
<ItemTemplate>
<div> <asp:TextBox ID="txtName" runat="server"/> <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" > </asp:Button> </div>
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
</asp:UpdatePanel>
References
Upvotes: 2