Invalid postback or callback argument


Erro:

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

Este erro ocorre quando você chama algum evento por javascript, AJAX ou o controle que recebe o evento está com a propriedade visible=false.

Solução: Adicionar enableEventValidation=”false” na diretiva de compilação Page

Ex.:

<%@ Page  enableEventValidation="false" Language="C#" ... %>

Veja mais em

http://groups.google.pt/group/microsoft.public.br.dotnet.framework.aspnet/browse_thread/thread/920cfc78bdf02724

http://www.asp.net/learn/whitepapers/request-validation/

Related Posts Plugin for WordPress, Blogger...