PDA

View Full Version : [CLOSED] Internet-Explorer 8 -> long waits in building the page



ontiv
May 28, 2013, 7:18 AM
Hi @all,

I use the following code to show me different UserControlls in <asp:Repeater...

This way to show is in any browser very fast but not in Internet-Explorer 8.
Have anyone an idea what it could be ?

.aspx


<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
//............

rp_conts.DataSource = l_repaeter_items;
rp_conts.DataBind();
}

protected void rp_conts_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
var aspxItem = e.Item;
var dataItem = (RepeaterContItem)e.Item.DataItem;

var uc_ContTextItem = LoadControl("~/Views/Contribution/uc_ContText_New.ascx") as ASP.uc_ContText_New;

uc_ContTextItem.BuildControl(dataItem.contSID);

aspxItem.Controls.Add(uc_ContTextItem);
}
</script>

<html>
<body>
<form runat="server" id="f_master">
<ext:Viewport runat="server" Layout="BorderLayout" Width="500">
<Items>
<ext:Panel runat="server" Region="North" Height="150">
<Items>
</Items>
</ext:Panel>

<ext:Panel ID="p_repeater" runat="server" Border="false" Region="Center" AutoScroll="true">
<Content>
<div id="dvConts">
<asp:Repeater ID="rp_conts" runat="server" OnItemDataBound="rp_conts_ItemDataBound">
</asp:Repeater>
</div>
</Content>
</ext:Panel>

<ext:Panel runat="server" ID="p_east" Region="East" Width="200">
<Items>
</Items>
</ext:Panel>

<ext:Panel runat="server" ID="p_west" Region="West" Width="200">
<Items>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>

Daniil
May 28, 2013, 9:54 AM
Hi @ontiv,

Probably, it happens due to slow IE8 JavaScript engine.

Another question is how to improve it. It is hard to say without a full sample to reproduce.