Dec 4 2008

Why UpdateProgress Not Showing Sometimes?

Category: ASP.NET AJAXBil@l @ 22:00

I was stuck this afternoon while working on a very simple AJAX task when the UpdateProgress stopped showing for some reason when an asynchronous request is fired!

I browsed a bit online and found this nice blog post: Why the UpdateProgress won't display. I strongly recommend you read that blog post!

The UpdateProgress controls stops showing or displaying when the control that fired the asynchronous event is located outside the UpdatePanel that the UpdateProgress is attached to or when the ChildrenAsTriggers property on the UpdatePanel is set to false.

Why is this? Let us have a look at this sample code from the AJAX library:

     function Sys$UI$_UpdateProgress$_handleBeginRequest(sender, arg) {
        var curElem = arg.get_postBackElement();
        var showProgress = !this._associatedUpdatePanelId;
        while (!showProgress && curElem) {
            if (curElem.id && this._associatedUpdatePanelId === curElem.id) {
                showProgress = true;
            }

            curElem = curElem.parentNode;
        }
        if (showProgress) {
            this._timerCookie = window.setTimeout(this._startDelegate, this._displayAfter);
        }
    }

Without going into too much details look at the line bolded above! The UpdateProgress control hooks to the BeginRequest of the PageRequestManager. What happens inside this handler mainly in the bolded line shows that, only when the event is fired from inside the UpdatePanel associated to the UpdateProgress control, this controls displays its UI.

I have written articles on ASP.NET AJAX and never noticed this :). The more you learn, the more you realize there are still things missing!!!

The solution as proposed by the above link, is to hook yourself to the BeginRequest event of the PageRequestManager and display the UpdateProgress!!

 

Hope this post helped you!
Regards

 

Tags:

Dec 4 2008

Patterns and Practices: New Pocket Guides

Category: Patterns and PracticesBil@l @ 13:40

New Pocket Guides are now available from the Patterns and Practices website. The guides include:

  1. Agile Architecture Method Pocket Guide
  2. Web Architecture Pocket Guide
  3. Mobile Architecture Pocket Guide
  4. RIA Architecture Pocket Guide
  5. Rich Client Architecture Pocket Guide
  6. Service Architecture Pocket Guide

To download them, go to the website at: http://www.codeplex.com/AppArch

Thank to Raed for pointing out these guide for me.

 

HTH,
Regards

Tags:

Dec 1 2008

OpenAccess by Telerik

Category: Telerik ControlsBil@l @ 12:47

OpenAccess by Telerik provides the following features:

  • Forward and Reverse Mapping for 6 databases
  • Step-by-step Visual Studio wizards
  • Disconnected API
  • Transparent Persistence, Lazy Loading
  • LINQ support
  • Synchronized distributed Level 2 cache
Make sure to check it out here: OpenAccess by Telerik

Regards

 

Tags:

Dec 1 2008

URL Rewrite Module for IIS 7.0

Category: ASP.NET 3.5 | IIS 7.0Bil@l @ 06:47

I came across the URL Rewrite Module for IIS 7.0. That was released by the IIS Team on November 10th 2008. Check out the release page here:
URL Rewrite Module  - Release to Web

The module has so many important features that any ASP.NET developer should have a look at.

 

Hope this helps,
Regards

Tags: ,