Eventvalidation, bug or annoyance ?

P

PL

It seems there is a bug or at least an annoynance with the new eventvalidation.

I can't really tell you a certain way to reproduce this but I have a large datagrid that
uses custom paging, I have navigation controls both at the top and the bottom.

Everything works fine if you click the navigation links and allow the page to fully
load before clicking the next time, but sometimes people click the navigation links
at the top before the page has fully loaded, and behold, the dreaded "yellow page"
appears:

Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or
<%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or
callback events originate from the server control that originally rendered them.
....<snip>

The whole problem here seem to be that the hidden form field __EVENTVALIDATION is placed
at the very bottom of the page, just above the closing form tag, so if the page isn't fully loaded when
they click the "next" link this field is either not sent along or is corrupted.

So, BUG or annoyance ? You decide, it seems to me this is a buggy implementation to say the least
and it may appear intermittently all over an application just because a postback happens from a page
that haven't fully loaded.

It would be nice to MS comments on this, and how to solve it other than turning eventvalidation off
for the whole application.

PL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top