Hi
I have a Datalist with a Button and an Iframe inside the Itemtemplate.
When I click the button, only the selected item should be refreshed, so I wrapped it with an Updatepanel.
But whenever I click the button, ALL the iframes in the datalist refreshes, not just the one.
I tried putting in async triggers but that did not work either.Code:<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" /> <iframe id='iframe_id' src='http://www.pons.za.net'></iframe> </ContentTemplate> </asp:UpdatePanel> </ItemTemplate> </asp:DataList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT top 3 [q_id] FROM [qoutes]"></asp:SqlDataSource>
Anyone have an idea what I can do?
Regards
appelmeester




Reply With Quote
