Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 783387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:32:20+00:00 2026-05-14T20:32:20+00:00

Could someone please explain the significant difference in speed between a firefox updatepanel async

  • 0

Could someone please explain the significant difference in speed between a firefox updatepanel async postback and one performed in IE?

Average Firefox Postback Time For 500 objects: 1.183 Second

Average IE Postback Time For 500 objects: 0.295 Seconds

Using firebug I can see that the majority of this time in FireFox is spent on the server side. A total of 1.04 seconds.

Given this fact the only thing I can assume is causing this problem is the way that ASP.Net renders its controls between the two browsers.

Has anyone run into this problem before?

VB.Net Code

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        GridView1.DataBind()
    End Sub

    Public Function GetStockList() As StockList
        Dim res As New StockList

        For l = 0 To 500
            Dim x As New Stock With {.Description = "test", .ID = Guid.NewGuid}
            res.Add(x)
        Next

        Return res
    End Function


    Public Class Stock
        Private m_ID As Guid
        Private m_Description As String

        Public Sub New()
        End Sub

        Public Property ID() As Guid
            Get
                Return Me.m_ID
            End Get
            Set(ByVal value As Guid)
                Me.m_ID = value
            End Set
        End Property

        Public Property Description() As String
            Get
                Return Me.m_Description
            End Get
            Set(ByVal value As String)
                Me.m_Description = value
            End Set
        End Property
    End Class

    Public Class StockList
        Inherits List(Of Stock)

    End Class

Markup

<form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <script type="text/javascript" language="Javascript">

function timestamp_class(this_current_time, this_start_time, this_end_time, this_time_difference) { 
        this.this_current_time = this_current_time;
        this.this_start_time = this_start_time;
        this.this_end_time = this_end_time;
        this.this_time_difference = this_time_difference;
        this.GetCurrentTime = GetCurrentTime;
        this.StartTiming = StartTiming;
        this.EndTiming = EndTiming;
    }

    //Get current time from date timestamp
    function GetCurrentTime() {
        var my_current_timestamp;
        my_current_timestamp = new Date();      //stamp current date & time
        return my_current_timestamp.getTime();
        }

    //Stamp current time as start time and reset display textbox
    function StartTiming() {
        this.this_start_time = GetCurrentTime();    //stamp current time
    }

    //Stamp current time as stop time, compute elapsed time difference and display in textbox
    function EndTiming() {
        this.this_end_time = GetCurrentTime();      //stamp current time
        this.this_time_difference = (this.this_end_time - this.this_start_time) / 1000; //compute elapsed time
        return this.this_time_difference;
    }

//-->
</script>
<script type="text/javascript" language="javascript">
    var time_object = new timestamp_class(0, 0, 0, 0); //create new time object and initialize it   

    Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function BeginRequestHandler(sender, args) {
        var elem = args.get_postBackElement();
        ActivateAlertDiv('visible', 'divAsyncRequestTimer', elem.value + '');
        time_object.StartTiming();
    }
    function EndRequestHandler(sender, args) {
        ActivateAlertDiv('visible', 'divAsyncRequestTimer', '(' + time_object.EndTiming() + ' Seconds)');
    }
    function ActivateAlertDiv(visstring, elem, msg) {
        var adiv = $get(elem);
        adiv.style.visibility = visstring;
        adiv.innerHTML = msg;
    }
</script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Button1" EventName="click" />
    </Triggers>
        <ContentTemplate>
            <asp:Button ID="Button1" runat="server" Text="Button" />
            <div id="divAsyncRequestTimer" style="font-size:small;">
            </div>
            <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                    <asp:BoundField DataField="Description" HeaderText="Description" 
                        SortExpression="Description" />
                </Columns>
            </asp:GridView>

            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                SelectMethod="GetStockList" TypeName="WebApplication1._Default">
            </asp:ObjectDataSource>
        </ContentTemplate>
    </asp:UpdatePanel>

    </form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:32:21+00:00Added an answer on May 14, 2026 at 8:32 pm

    I’m guessing its the initial time to compile the page. When I run the IE page first it renders in a second and subsequently running the page in firefox takes about .2 seconds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 495k
  • Answers 495k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer select * from sys.messages where message_id > 50000 May 16, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer I would handle the click not by the row, but… May 16, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer I think that your class is on the classpath but… May 16, 2026 at 11:25 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Could someone please explain the differences between POSIX sockets and BSD sockets?
Could someone please explain the best way to connect to an Interbase 7.1 database
Could someone please explain? I couldn't find anything on the internet, everything talks about
Could someone please explain to me why recursive-descent parsers can't work with a grammar
Could someone please explain when would I want to use delegation instead of inheritance?
Could someone please explain to me why I'm getting an ActionView::TemplateError when I try
Could someone please explain why $_POST= array(); isn't an effective way of resetting your
Could someone please explain to me what we refer to as life critical information
could someone please explain why the following code is throwing an error? // JavaScript
Please, could someone explain me why "make-array" has no effect on plant1? (LET (plant1)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.