Showing posts with label internet. Show all posts
Showing posts with label internet. Show all posts

Monday, March 26, 2012

UpdatePanel & Safari

Hi

On my page I have an updatepanel which works fine in all browsers, but not in Safari. I've been searching a lot on the internet (and on this site) for the problem.

I've found a lot of topics where people have the same problem as me.
For example:http://forums.asp.net/thread/1237608.aspx
This person posts that the problem is solved in the March-edition of Atlas, but I'm using the latest version, the April-edition.

Is there still a "bug" in Atlas for Safari-browsers or is there knowledge of some unsupported atlas-functions in safari?

Thanks in advance for the information.

Mathias.

haai. One of my colleagues has run into problems on Safari also. We're not sure if the problem is Atlas or something to do with our own code. Did you find out anything more about this?
SAME PROBLEM ON JUNE 27
UpdatePanel is currently not supported on Safari.

UpdatePanel / DataGrid / Internet Explorer Lock up

Hi!

I'm facing a strange problem and would like to know if anybody can help me out!
I've a page with 5 UpdatePanels which all use the same asynchronous Postback Trigger (a DropDown Box).

e.g.

<asp:ScriptManagerID="_scriptManager"runat="server"EnablePartialRendering="true">

<Services>

<asp:ServiceReferencePath="../services/positions.asmx"/>

</Services>

</asp:ScriptManager>

<asp:UpdatePanelID="UpdatePanel2"runat="server">

<ContentTemplate>

<asp:GridViewBorderWidth="0"CellSpacing="0"cellpadding="3"Width="100%"ID="grdCash"runat="server"ForeColor="#333333"GridLines="Horizontal"AutoGenerateColumns="False"ShowFooter="False">

<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>

<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>

<EditRowStyleBackColor="#999999"/>

<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>

<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>

<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>

<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>

<Columns>

<asp:BoundFieldItemStyle-Width="80"DataField="SEGMENT"HeaderText="SEGMENT/CCY"HeaderStyle-HorizontalAlign="center"ItemStyle-HorizontalAlign="center"/>

<asp:BoundFieldDataField="DATUM"HeaderText="DATUM"HtmlEncode="False"DataFormatString="{0:dd.MM.yyyy}"HeaderStyle-HorizontalAlign="center"ItemStyle-HorizontalAlign="center"/>

<asp:BoundFieldDataField="FREE_CASH"HeaderText="FREE CASH"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="left"ItemStyle-HorizontalAlign="left"/>

<asp:BoundFieldDataField="SETT_TRANS"HeaderText="SETT.TRANS"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:BoundFieldDataField="CPNS"HeaderText="CPNS"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:BoundFieldDataField="REDEMPTIONS"HeaderText="REDEMPTIONS"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:BoundFieldDataField="CASH_TRANSFERS"HeaderText="TRANSFERS"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:BoundFieldDataField="DEPOSITS"HeaderText="DEPOSITS"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:BoundFieldDataField="MAT_TD"HeaderText="MAT.TD"HtmlEncode="False"DataFormatString="{0:N}"HeaderStyle-HorizontalAlign="right"ItemStyle-HorizontalAlign="right"/>

<asp:TemplateFieldHeaderText="VALID"HeaderStyle-HorizontalAlign="center"ItemStyle-HorizontalAlign="center">

<ItemTemplate>

<asp:ImageID="imgValid"BorderStyle="None"runat="server"/>

</ItemTemplate>

</asp:TemplateField>

</Columns>

</asp:GridView>

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTriggerControlID="drpFonds"/>

</Triggers>

</asp:UpdatePanel>


The strange thing is that after a couple of refreshes (through the async postback trigger drpFonds) the Internet Explorer ( on the client ) locks-up and CPU utilization goes up to 100%.
I use some javascript code on this page, but there aren't any loops or timers (like setinterval etc.)
The partial postback executes some SQL queries and updates the datagrid(s) - nothing else happens.
I can't figure out what's wrong. Can anybody give me some hints on how to debug such a problem?

Thank you!

Regards
Holger

I had a problem just like that. It turned out that I was using a

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(calledFunction)

without removing it using

Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(calledFunction)

Every time the update panel posted back it added another delegate call to the event. So over time the target function was being called over and over and over until it crashed the browser.