Update panel with nested repeater not working correctly in Chrome or Safari despite bug fix?http://forums.asp.net/t/1808580.aspx/1?Update+panel+with+nested+repeater+not+working+correctly+in+Chrome+or+Safari+despite+bug+fix+Wed, 30 May 2012 15:10:33 -040018085805002405http://forums.asp.net/p/1808580/5002405.aspx/1?Update+panel+with+nested+repeater+not+working+correctly+in+Chrome+or+Safari+despite+bug+fix+Update panel with nested repeater not working correctly in Chrome or Safari despite bug fix? <p>Hello,</p> <p>I am using ASP.NET 2 and I have included the System.Web.Extentions dll for ASP.NET AJAX.</p> <p>&nbsp;I have a page where I have a nested repeater in an update panel triggered by the onselectedchange event of a drop down list. So when I change the drop down, the data that is displayed changes. Works in IE, and Firefox which would be expected. Also partially works in Chrome and Safari. What happens is the data will change fine, but if there is a case where there is no data, it breaks. In Firefox and IE it will display a message instead as I do a check for number of items. In Chrome and Safari it will display the message, but it will leave one of the old child repeater divs behind from the old bound data. If you click on the drop down it will disappear, (or inspect element on developer tools)&nbsp;but then it freezes the dropdown. I am aware that there is a *bug* with webkit browsers and update panels so I included this js in my scriptmanager:</p> <pre class="prettyprint">if (typeof (Sys.Browser.WebKit) == &quot;undefined&quot;) { Sys.Browser.WebKit = {}; } if (navigator.userAgent.indexOf(&quot;WebKit/&quot;) &gt; -1) { Sys.Browser.agent = Sys.Browser.WebKit; Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d&#43;(\.\d&#43;)?)/)[1]); Sys.Browser.name = &quot;WebKit&quot;; }</pre> <p>but it seems to make no difference. I have used&nbsp;Chrome developer&nbsp;tools and done some console logging and it runs this script.&nbsp; I have also stepped through my code to ensure that it isn't still binding any data. Anyone have any ideas?</p> <pre class="prettyprint"> &lt;asp:DropDownList ID="BookingDates" runat="server" AutoPostBack="true" CssClass="bookingDatesList" OnSelectedIndexChanged="BookingDates_SelectedIndexChanged" OnChange="hideSeminarDetails();"/&gt; &lt;asp:UpdatePanel ID="UpdateFeed" runat="server"&gt; &lt;ContentTemplate&gt; &lt;asp:Repeater ID="BookingDateList" runat="server" OnItemDataBound="BookingDateList_ItemDataBound" &gt; &lt;ItemTemplate&gt; &lt;div class="StartTimeBanner"&gt;&lt;asp:Label ID="StartTimeBanner" runat="server" CssClass="StartTimeText"&gt;&lt;/asp:Label&gt;&lt;/div&gt; &lt;asp:Repeater ID="seminarFeed" runat="server" OnItemDataBound="SeminarFeed_ItemDataBound"&gt; &lt;ItemTemplate&gt; &lt;asp:LinkButton ID="SelectSeminar" runat="server" OnClientClick='&lt;%# "UpdateSessionSeminar(" +Eval("Id") + " );" %&gt;' &gt; &lt;div class="Seminar"&gt; &lt;asp:Label ID="FeedTitle" runat="server" cssClass="floatLeft FeedLabel"&gt;&lt;/asp:Label&gt; &lt;asp:Label ID="FeedTime" runat="server" cssClass="floatLeft FeedLabel"&gt;&lt;%# Eval("StartTime") %&gt; - &lt;%# Eval("EndTime") %&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;/asp:LinkButton&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="BookingDates" EventName="SelectedIndexChanged" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt;</pre> <p>Thanks</p> 2012-05-29T15:00:20-04:005003572http://forums.asp.net/p/1808580/5003572.aspx/1?Re+Update+panel+with+nested+repeater+not+working+correctly+in+Chrome+or+Safari+despite+bug+fix+Re: Update panel with nested repeater not working correctly in Chrome or Safari despite bug fix? <p>Hi,</p> <p>I have try a scenario as you said. And that is runing normal. So please check again, or post more related code.</p> <p>For updatepanel, please refer to: <a href="http://msdn.microsoft.com/en-us/library/bb386454.aspx"> http://msdn.microsoft.com/en-us/library/bb386454.aspx</a>.</p> 2012-05-30T08:55:39-04:005004448http://forums.asp.net/p/1808580/5004448.aspx/1?Re+Update+panel+with+nested+repeater+not+working+correctly+in+Chrome+or+Safari+despite+bug+fix+Re: Update panel with nested repeater not working correctly in Chrome or Safari despite bug fix? <p>hi,</p> <p>I have found the answer though not in the quickest way. I rewrote the page so that I do AJAX via page methods and used Javascript to repeat the markup as required. This led me to discover that between each dropdown list change, clearing all child divs (the div which appeared from the old bound data) before binding the data, stopped it reapearing. the drop down list freeze went away too without update panels. It not works in Chrome and Safari fine</p> <p>Thanks for testing it out, the fact that it worked for someone helped me</p> 2012-05-30T15:10:33-04:00