ASP.Net Event Validation fails on Android phone browser

997 views Asked by At

We're running a fairly large site, and a lot of our visitors have started using their Android based cellphones to visit the site. However when they try to login, we get an Event Validation error:

Invalid postback or callback argument. Event validation is enabled using 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. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Does anyone know of a way to fix this, without disabling Event validation entirely ?

It isn't every single time they visit, but it is often enough that it's a problem.

Also we never get these on PC-based browsers (IE, FF, Chrome, Safari, Opera, etc.)

EDIT:

The page this happens on has no updatepanels, no custom __doPostback code, etc. It's pretty much vanilla with a simple LinkButton that causes the postback.

Also this error occurs on a bunch of other pages as well (Just found out about that now), so I doubt it's a lone design fault.

I think it's more likely it's an issue with the Android based browser and ASP.Net in general.

1

There are 1 answers

0
David On BEST ANSWER

I think I found the answer here:

http://support.microsoft.com/kb/969548

the reason I think this is the case is that I can't duplicate this when I browse normally on my Android simulator, but I CAN if I click on a button before the page ifnishes loading. Also, even the 3G networks are slow enough that this scenario is likely, as impatient users will click as soon as they see the option they want.