Legacy mode not supported on pages that use UpdatePanels, but...

Published Mon, Feb 5 2007 16:50

you can still use it at your own risk.

By default, if you set the conformance level to debug, you'll get full postbacks in your pages. why? well, because during the Init event of the page, the PageRequestManager server class initializes the SupportsPartialRendering property of its owner (whic, btw, is the ScriptManager control) by checking the value of the EnableLegacyRendering (which icomes from the property with the same name that is exposed by the ScriptManager control).

What you might not know is that if you set the SupportsPartialRendering property the previous execution logic never takes place and you'll get partial postbacks working at your own risk (might I add:) )

Filed under:

Comments

# DG said on Thursday, June 21, 2007 11:41 AM

Hi,

I'm very interessed to try Partial rendering a my own risk, but how do I do... ? I cannot find the "EnableLegacyRendering" porperty (and the "SupportsPartialRendering" by the way...)

ManyThanks

DG

# luisabreu said on Thursday, June 21, 2007 1:14 PM

hello.

well, EnableLegacyRendering is a private property of the internal PageRequestManager class. What i was trying to say was that you can bypass the3 default logic by explicitly setting the supportspartialrendering of the scriptmanager control class.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above:  

Search

This Blog

Tags

Community

Archives

Syndication

Email Notifications

News




  • View Luis Abreu's profile on LinkedIn


    Follow me at Twitter

    My books

    Silverlight 4.0: Curso Completo

    ASP.NET 4.0: Curso Completo

    Portuguese LINQ book cover

    Portuguese ASP.NET 3.5 book cover

    Portuguese ASP.NET AJAX book cover

    Portuguese ASP.NET AJAX book cover