Thank you for the reply but the supplied links don’t help resolve the issue.
The first seems to refer to getting ASP.NET AJAX Extensions being incorrectly registered and the second was an incorrect setting in the web config.
With my scenario everything works currently until I add a reference to the AjaxControlTool kit.
If I use any of the tool kit controls they work correctly but in my example are not required. The issue is that as soon as I add the ability to use them to a web site, the repeater control in an update panel causes a full post back.
If i change the Repeater control to a DataList it all works again it’s just the Repeater control in the update panel.
Sorry to bump this but i can’t understand why i get this issue. Surly this is a common problem. Can someone give me a simple example with this working?
stuart_yeate...
Member
19 Points
6 Posts
Repeater + UpdatePanel + AjaxControlToolkit Bug?
May 03, 2011 09:11 AM|LINK
Hi I have a problem with a repeater control in an update panel once the ajax tool kit is used.
With my scenario everything works currently until I add a reference to the AjaxControlTool kit
If I create a simple page with a repeater in an update panel i can perform actions on the onItemCommand without a full postback being raised.
As soon as i add a reference to the AjaxControlToolkit a full page postback occurs. No code changes at all just added a reference.
Is this a known issue / bug? I cant seem to find others with this issue but cant see why this is happeneing.
Thank you in advance.
<asp:ScriptManager runat="server" ID="scriptMan" /> <h1>Update Panel Test</h1> <p>If you add a reference to the Ajax Control Tool Kit the repeater OnItemCommand control causes a full postback.</p> <br /> <h3>Page Update Time: <%=DateTime.Now.ToString() %></h3> <br /> <div style="border: solid 5px green;width: 300px"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"> <ContentTemplate> UpdatePanel Update Time: <%=DateTime.Now.ToString() %> <br /> <asp:Repeater runat="server" ID="testRep" OnItemCommand="testRep_OnItemCommand"> <ItemTemplate> <%# Container.DataItem.ToString() %> :: <asp:LinkButton ID="LinkButton1" runat="server">Remove <%# Container.DataItem.ToString() %></asp:LinkButton><br /> </ItemTemplate> </asp:Repeater> <hr /> <asp:LinkButton runat="server" ID="testAdd" OnClick="testAdd_OnClick">Add New Item</asp:LinkButton><br /> <asp:LinkButton runat="server" ID="testRemove" OnClick="testRemove_OnClick">Remove Random Item</asp:LinkButton><br /> </ContentTemplate> </asp:UpdatePanel> </div>chetan.sarod...
All-Star
65749 Points
11148 Posts
Re: Repeater + UpdatePanel + AjaxControlToolkit Bug?
May 04, 2011 03:24 AM|LINK
Hi, Please refer this
http://forums.asp.net/t/1302611.aspx/2/10
http://forums.asp.net/t/1096774.aspx/1
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
stuart_yeate...
Member
19 Points
6 Posts
Re: Repeater + UpdatePanel + AjaxControlToolkit Bug?
May 04, 2011 10:39 AM|LINK
Thank you for the reply but the supplied links don’t help resolve the issue.
The first seems to refer to getting ASP.NET AJAX Extensions being incorrectly registered and the second was an incorrect setting in the web config.
With my scenario everything works currently until I add a reference to the AjaxControlTool kit.
If I use any of the tool kit controls they work correctly but in my example are not required. The issue is that as soon as I add the ability to use them to a web site, the repeater control in an update panel causes a full post back.
If i change the Repeater control to a DataList it all works again it’s just the Repeater control in the update panel.
Thanks
stuart_yeate...
Member
19 Points
6 Posts
Re: Repeater + UpdatePanel + AjaxControlToolkit Bug?
May 05, 2011 07:49 AM|LINK
Sorry to bump this but i can’t understand why i get this issue. Surly this is a common problem. Can someone give me a simple example with this working?
stuart_yeate...
Member
19 Points
6 Posts
Re: Repeater + UpdatePanel + AjaxControlToolkit Bug?
Sep 21, 2011 09:49 AM|LINK
Almost given up on this but finally found a solution today.
Its very simple
for some reason when using the ajax control toolkit you need to explicitly specify the controls within the repeaters clientIDMode as Auto
Thanks it.