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

  • Home
  • SEARCH
  • 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 79419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:08:34+00:00 2026-05-10T21:08:34+00:00

I’m working on an ASP.Net application and working to add some Ajax to it

  • 0

I’m working on an ASP.Net application and working to add some Ajax to it to speed up certain areas. The first area that I am concentrating is the attendance area for the teachers to report attendance (and some other data) about the kids. This needs to be fast.

I’ve created a dual-control set up where the user clicks on the icon and via Javascript and Jquery I pop up the second control. Then I use a __doPostBack() to refresh the pop up control to load all of the relevant data.

Here’s a little video snippet to show how it works: http://www.screencast.com/users/cyberjared/folders/Jing/media/32ef7c22-fe82-4b60-a74a-9a37ab625f1f (:21 and ignore the audio background).

It’s slower than I would like at 2-3 seconds in Firefox and Chrome for each ‘popping up’, but it’s entirely unworkable in IE, taking easily 7-8 seconds for each time it pops up and loads. And that disregards any time that is needed to save the data after it’s been changed.

Here’s the javascript that handles the pop-up:

function showAttendMenu(callingControl, guid) { var myPnl = $get('' + this.MyPnl.ClientID + @'') if(myPnl) {     var displayIDFld = $get('' + this.AttendanceFld.ClientID + @'');     var myStyle = myPnl.style;     if(myStyle.display == 'block' && (guid== '' || guid == displayIDFld.value)) {         myStyle.display = 'none';     } else {         // Get a reference to the PageRequestManager.         var prm = Sys.WebForms.PageRequestManager.getInstance();          // Unblock the form when a partial postback ends.         prm.add_endRequest(function() {             $('#' + this.MyPnl.ClientID + @'').unblock({ fadeOut: 0});         });          var domEl = Sys.UI.DomElement;         //Move it into position         var loc = domEl.getLocation(callingControl);         var width = domEl.getBounds(callingControl).width;         domEl.setLocation(myPnl, loc.x + width, loc.y - 200);          //Show it and block it until we finish loading the data         myStyle.display = 'block';         $('#' + this.MyPnl.ClientID + @'').block({ message: null, overlayCSS: { backgroundColor:'#fff', opacity: '0.7'} });           //Load the data         if(guid != '') { displayIDFld.value = guid; }          __doPostBack('' + UpdatePanel1.ClientID + @'','');     } }} 

First, I don’t understand why the __doPostBack() introduces such a delay in IE. If I take that and the prm.add_endRequest out, it’s VERY speedy as no postback is happening.

Second, I need a way to pop up this control and refresh the data so that it is still interactive. I’m not married to an UpdatePanel, but I haven’t been able to figure out how to do it with a Web Service/static page method. As you can see this control is loaded many times on the same page so page size and download speed is an issue.

I’d appreciate any ideas?

Edit: It’s the same in IE 6 or 7. I’m thinking it has to do with IE’s handling of the UpdatePanel, because the same code is much faster in FF and Chrome.

  • 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. 2026-05-10T21:08:35+00:00Added an answer on May 10, 2026 at 9:08 pm

    If speed/performance is a major concern for you, I would strongly suggest against UpdatePanels, as they cause a full page postback that drags the ViewState in the header, among other crap, and forces the page to go through the whole life cycle every time (even though the user doesn’t see this).

    You should be able to (relatively easily) use PageMethods to accomplish your task.

    // In your aspx.cs define the server-side method marked with the  // WebMethod attribute and it must be public static. [WebMethod] public static string HelloWorld(string name) {   return 'Hello World - by ' + name; }  // Call the method via javascript PageMethods.HelloWorld('Jimmy', callbackMethod, failMethod); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • 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
  • added an answer The inherent thread safety of ContainsKey doesn't matter, since there… May 11, 2026 at 11:28 am
  • added an answer Bitwise inclusive OR --> | Logical OR --> || So...… May 11, 2026 at 11:28 am
  • added an answer I knew there was an obvious solution: dirFoo\ __init__.py test.py… May 11, 2026 at 11:28 am

Related Questions

I keep getting tasks that are above my skill level. How can I address this without coming accross as grossly incompetent?
I have a web-service that I will be deploying to dev, staging and production.
I'm thinking of starting a wiki, probably on a low cost LAMP hosting account.
I have the following tables in my database that have a many-to-many relationship, which
I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having
I recently printed out Jeff Atwood's Understanding The Hardware blog post and plan on
I find that getting Unicode support in my cross-platform apps a real pain in
I would like to test a string containing a path to a file for
I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable
I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been

Trending Tags

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

Top Members

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.