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.:

&lt;%@ Page  enableEventValidation="false" Language="C#" ... %&gt;

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/

Veja também

Total de visitas: 520.
Esta entrada foi publicada em .Net, Erros. Adicione o link permanente aos seus favoritos.

Deixe uma resposta

O seu endereço de email não será publicado Campos obrigatórios são marcados *

*

Você pode usar estas tags e atributos de HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>