.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Slow updatepanel.update() in IE6/7, fast in firefox?! tried fix.

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net

I have an update panel with about 5 slider extenders, 10 textboxes, and 3 dropdown bullet list.  When a slider is moved, a partial postback occurs, that which the server also updates another textbox with a value by first setting the textbox (.text = somevalue) and then calling the updatepanel.update().

I find out that this command updatepanel.update() significantly causes IE6 and IE7 browser to lag about 1-1.5 seconds longer when updating the values in the textbox.  It is sort of unacceptable.

I have applied this fix already: http://support.microsoft.com/kb/2000262

but it is not helping.

However, I must say, this problem is not occuring in FireFox 3.6.  In fact, it has no lag whether or not the fix is used.  The problem only occurs in IE6 and IE7.

Any idea why an updatepanel is slow to refresh?


View Complete Post

More Related Resource Links

SSIS - Data Flow Task Reads Fast But Importing the Output,Update & Deleting Extremely Slow & runs lo


Good day, I need help please.

In my source I read about 4mil records in a matter of seconds But Importing the Output to the Same Table takes about an 1 hour to update.

My Source Read is the Same Table to which i'm Importing, Updateing,Deleting

Importing: Table Lock & Check Constraints are checked

Please any ideas & suggestions will be great.

Thank You

Run a javascript function after UpdatePanel.Update()


I thought that adding the javascript within the ContentTemplate would cause it to run every time the UpdatePanel was updated.  For example, I would assume that for the following:

<atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="Conditional" >
        Hello from inside the update panel!!!!
        <asp:Button ID="foo" runat="server" OnClick="foo_Click" Text="Click me to postback!" />
        <script type="text/javascript">alert('Javascript, baby!');</script>

 would cause the function alert() to run every time the UpdatePanel returns from the button click.  This is not the case, however.

How do I do this?  My update panel contains a scrolling Div and I

FAST search query is slow...

Hi, we are using fast search for sharepoint 2010. We are crawling an external data source and this is used for search queries. we have around 30 metadata properties and all are full-text indexed. however, the search operation is slow for a database of 5k records in intranet (webserver and database server are in different geographic regions). typically a 100 item search takes 9-10 sec. it get worse over internet and the search query varies from 10-45 sec for 100 items. Any pointers will be helpful. thanks.  

Update updatepanel

Hi,I have user control in my page and i want to update updatepanel on this user control when click on linkbutton on my page.*notice: linkbutton is not inside of user control.

form in updatepanel (firefox vs ie newline)

I've got a form consisting of a multiline textbox (textarea) and a button.It works submitting the form and storing the text in the mysql database and then displaying the text on the site.Before displaying the text I change all newlines to br-tags: .Replace(Environment.NewLine, "<br />");  The problem is that since I added an updatepanel around the form, the displayed text does not have any newlines in it.This occurs only when the form was submitted using firefox, when submitting the form in IE there are newlines.I'm pretty sure this is because in firefox a newline is \n and in IE a newline is \n\r . and then Environment.NewLine is compared to \n instead so they're not displayed. The question is why \n is saved in an async postback when \n\r is saved in the database in a non-async postback (both cases using firefox) and what can I do to fix this? If this is the problem, it should be very common but I googled and couldn't find anything....

perform UpdatePanel.Update from different page

I have Page_A.aspx and Page_B.aspx Page_A.aspx has a text box and a Send button. Page_B.aspx has a Label control on it, inside an UpdatePanel I want that when I type something in Page_A.aspx and click Send, the text of Label on Page_B.aspx should be  updated with the text box text and the UpdatePanel should be updated. Is this possible? Page_A.aspx:<asp:TextBox runat="server" ID="ssMessage"></asp:TextBox> <asp:Button runat="server" ID="ssSendButton" Text="Send" OnClick="SendMessage" />   Page_B.aspx:<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Label runat="server" ID="ssCommonRoom"></asp:Label> </ContentTemplate> </asp:UpdatePanel>  

Height Doesn't Resize After Update with UpdatePanel in IE



On a page I made, I have a pretty standard update panel. In the update panel are radio buttons that trigger the update panel to change it's view (list or grid) based on which radio is selected. This works great in every browser except IE8. IE8 doesn't seem to want to update the height of the panel when it's refreshed causing the content are to stay rather large or to not be large enough.

You can see it here:


<asp:UpdatePanel ID="uplVideos" ChildrenAsTriggers="true" UpdateMode="Conditional" runat="server">
                    <div id="plVideosControls">
                	    <span style="font-weight: bold; line-height: 26px;">Display Mode:  </span>
                        <asp:RadioButtonList ID="rblVideosDisplay" CssClass="rblVideosDisplay" 

                            <asp:ListItem Text="Table" Value="table" />

Ajax update panel refresh and dropdown behaviour in firefox


I have found an odd bug in my application.  I have a dropdown status which is bound to my gridview. On selecting a status from the dropdown the selectedindex then fires and binds the results to the gridview.

Now the strange behaviour in firefox and not IE:

If I have a dropdown open and an ajax update fires on my gridview the option is selected from the dropdown (just by hovering my mouse over it rather than selecting it) and the results bound to the gridview. This does not happen in ie as you should have to physically select an item from the dropdown rather than firefox selecting it for you because you happened to hover over an option when the update event fires.

Anybody had the same problem or does anyone have a fix out there?

Your help would be appreciated.





update datalist in updatepanel after asyncfileupload has uploaded a new file


I want to update an updatepanel after the user has uploaded a photo via the asynfileupload control.

Below is my current code. I also tried setting updatemode="conditional" to "false" and then in code-behind call upnlPhotos.update, but without luck...

Upload photo: <cc1:AsyncFileUpload ID="afuPhoto" runat="server" /><br />

<asp:UpdatePanel ID="upnlPhotos" runat="server">

    <asp:DataList ID="dlPhotos" DataSourceID="dsPhotos" DataKeyField="id" RepeatColumns="5" RepeatDirection="Horizontal" GridLines="None" runat="server" >
        <img alt="" src='/images/trouwlocatiefotos/thumbs/<%# Eval("locpath")%>' /><br />            

    <asp:SqlDataSource ID="dsPhotos" SelectCommand="SELECT id,locationid,locpath from location_photos lp where locationid=@locationid" ConnectionString="<%$ConnectionStr

Nested updatepanel updating all the update panel



I have one update panel which is having tPlaceholder which is loading dynalically.

<asp:UpdatePanel ID="UpdatePanel_ForumContent" runat="server" UpdateMode="Conditional">
            <asp:PlaceHolder ID="ForumTopicPlaceHolder" runat="server" Visible="true"></asp:PlaceHolder>

in the CS file on page load, adding Placeholder dynalically

 Control ForumTopicTabControl = LoadControl("Topic.ascx");
                Assembly objAssembly = BuildManager.GetCompiledAssembly("~/Topic.ascx");
                Type objType = objAssembly.GetType("Blogs_ForumTopic");
                PropertyInfo objProperty = objType.GetProperty("TableName");
                objProperty.SetValue(ForumTopicTabControl, dr["TopicTableName"].ToString(), null);
                objProperty = objType.GetProperty("HeaderName");
                objProperty.SetValue(ForumTopicTabControl, dr["Name"].ToString(), null);
                objProperty = objType.GetProperty("HeaderDesc");
                objProperty.SetValue(ForumTopicTabControl, dr["Description

Execute jquery function after updatepanel.update


I want to execute following function after I have called updatepanel.update:

Public Sub StartScroller()
        Me.Page.ClientScript.RegisterClientScriptBlock(Me.[GetType](), "startscroll", "$(document).ready(function () {$('.scrollable').scrollable();});", True)
    End Sub

It doesnt work. I also tried RegisterStartupScript. I would expect the scrollable() method to be executed. But it doesnt.

    <asp:UpdatePanel ID="upnlCompareLocations" runat="server">
<a class="prev browse left"></a>
<div class="scrollable">   
   <!-- root element for the items -->
   <div class="items">

        <asp:ListView ID="repLocationsToCompare" ItemPlaceholderID="itemsGoHere" DataSourceID="XMLDSCompare" GroupItemCount="4" runat="server">
                <asp:PlaceHolder runat="server" ID="itemsGoHere"></asp:PlaceHolder>
                    <%# XPath("title&

Ajax Nobot, updatePanel on firefox


Hi guys,

I encounter a very strange problem and hope someone could help me. I have a content page in which a nobot control is used to prevent any robot guessing. There is an updatepanel used to hold all the input fields, enter button and the nobot control. Whenever I finished filling out the form and pressed enter button, an invalidbadresponse will come out. This problem doesn't appear on IE, Chrome but on Firefox. I used firebug to trace the problem and then i found that 2 posts were submited. 1 is aborted and 1 is successfully sent. The most wired thing is, when i fired the webpage on debugger mode from visual web developer (http://localhost:<port> ), firefox can validate it without a problem. Once I copied the page to my website ( http://www.mySite.net/ ), such invalidbadresponse comes out. Then, I tried to remove the updatePanel and now only 1 post is sent and no more invalidbadresponse is shown. Therefore, I guess the problem is between the mechanism of nobot and updatepanel. Could anyone know what happens behind and what I could do to solve this problem ?

My challenge is from the internet:

    Protected Sub CustomChallengeResponse(ByVal sender As Object, ByVal e As AjaxControlToolkit.NoBotEventArgs)

Guid clustered index fast select and slow insert



Don't know if this question is in wrong forum but I didnt find a better place.

I have a table called "CompanyApplications". The first column is a guid and is the PK (not clustered). The other colum is also a guid and is the company identifier. This is a guid because it comes from another table (the "company" table), an old table used for other stuff. Then I have a third and forth column for "ApplicationURL" and "ApplName.

My application will do alot of (since 30 000+ users) "select ApplName, ApplicationURL from CompanyApplications where companyId='<the company guid of the user>' order by ApplName). It will make very few inserts into this table. Only when one is inserting a new application.

I have some questions about this since I know it's not good to have a guid as clustered since it will have SQL Server to always resort the clusted index (because guids are "random"):

1. Is it wrong to have the companyId column as clusted in this example? If so, what is better?

2. I know inserts will be relatively slow when using guid as clustered. But in my case the insert does not need to be fast. Will the slow insert also affect selects from other users. I mean, will select's be slow for other users when the index is resorted becuase one user make an insert?


update another updatepanel when current updatepanel is updated


I have a button "ibtnDelete" in updatepanel 1 "upnlCompareLocations" and when its clicked I want to update updatepanel 1 AND updatepanel 2 "upnlOverview":

    <asp:UpdatePanel ID="upnlCompareLocations" runat="server">
        <asp:ListView ID="repLocationsToCompare" ItemPlaceholderID="itemsGoHere" runat="server">
                    <asp:ImageButton Text="Delete" ID="ibtnDelete" ImageUrl="~/images/delete.gif" CommandName="deletecompare" CommandArgument='<%# string.Format("{0}",DataBinder.Eval(Container.DataItem, "id"))%>' runat="server" />

UpdatePanel don't work with Google Chorme or Mozilla Firefox.


Hi I am using update panels with Update mode conditional in by aspx page. The page is functioning properlly in the IE.8.0 but the page content is not posting when i open it in the Google Chrome or Mozilla Firefox.

FYI I am using Update panels for drop down lists and buttons and in the triggers also i am using similar controls

Pls can you suggest a way to get this out.



Update parent updatepanel from within usercontrol?

I have an updatepanel (updatemode="conditional"), within this updatepanel I have a modalpopup and in the modal popup I have a usercontrol that contains another updatepanel (updatemode="conditional").

What I wanna do now is...
In the inner updatepanel I have a form, when posted, this form will check if the fields are valid and if not send a error message.
If they are valid and all is fine then update the outer updatepanel.

Now it works fine to update the inner updatepanel on error. But how do I update the outer panel?

Dynamic images appear blank (white) after UpdatePanel update


I have a GridView within an UpdatePanel.  The UpdatePanel refreshes on a Timer.

On that GridView is a column of preview images that are dynamically created by resizing the original images.

I lazy load the images after the page has loaded using the Javascript below:

    var urls = '';

    function saveImageUrl(imgID, url) {
        urls = urls + imgID + '|' + url + ';';

    function postLoadImages() {
        if (urls != '') {
            var images = urls.split(';');
            for (var i = 0; i < images.length - 1; i++) {
                var subparts = images[i].split('|');
                $get(subparts[0]).src = 'Code/ImageHandler.ashx?s=tip&url=' + subparts[1];
            urls = '';

I call the saveImageUrl() function in the RowDataBound event of the GridView:

     var script = string.Format("saveImageUrl('{0}', '{1}');", previewImage.ClientID, imageUrlHiddenField.Value);
     ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), script, true);

On the initial page load, the HttpHandler is hit and the images load as expected.

However, when the GridView is ref

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend