Ayende @ Rahien

Unnatural acts on source code

Update Panel hates me

Okay, here is an error that I manage to get occasionally, no real pattern that I can notice.I don't have any filters, Response.Write(), HttpModules or trace enabled. (At least, none that writes to the outgoing string). The issue is that sometimes, the return result of an Update Panel postback would return the whole page, instead of just the parts inside an update panel. It is as if it decides to simply ignore the update panel, and just go its merry way onward.

image

Anyone has run into this before?

Comments

Mike
08/08/2007 05:59 PM by
Mike

This is a known issue with ASP.NET ajax . You can turn EventValidation='false' (they actually propose that as a solution...) .

Here's one post that has details...

http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx

Symon
08/08/2007 07:33 PM by
Symon

We had the same thing and corrected it the same way last week. It's one of those pet hates out there...

Ayende Rahien
08/08/2007 08:43 PM by
Ayende Rahien

Mike,

I have enableEventValidation="false" at the web.config level, so I don't think that this is the issue.

At any rate, it looks like something cause the UpdatePanel to send the whole page, no just the parts under the update panel.

Luke Breuer
08/08/2007 10:24 PM by
Luke Breuer

Have you tried enabling Fiddler so you can go back and see what might have been different with the requests that resulted in full page HTML being returned?

Chris Chew
08/09/2007 03:20 PM by
Chris Chew

ATLAS is also very finicky with invalid html and will revert to a full postback when the xhtml is invalid. Are you sure that you don't have periodic xhtml validation errors?

Rachit
08/09/2007 07:24 PM by
Rachit

Yeah, I get this now and then too...I tried enabling the Fiddler but then I couldn't replicate. Kinda hard to debug. Only thing I noticed that after adding AjaxControlToolkit control on the page, I'm seeing this more often. I could be wrong though!

Gramotei
08/10/2007 12:14 PM by
Gramotei

I've got one with Forms Authentication. when user log out on one page but there is 2nd open and he perform some action on 2nd page's update panel

Gramotei
08/10/2007 12:14 PM by
Gramotei

I've got one with Forms Authentication. when user log out on one page but there is 2nd open and he perform some action on 2nd page's update panel

Ayende Rahien
08/10/2007 12:15 PM by
Ayende Rahien

That is possible, except that I get the page that I would expect, not the login page.

Comments have been closed on this topic.