DaniloTec 0 Denunciar post Postado Setembro 1, 2009 Boa tarde gente. Estou com um problema que hora aparece e hora não aparece. Ao configurar o evento RowUpdating de um grid aparece a seguinte mensagem: 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. Pesquisei aqui no forum vi que é necessário colocar a propriedade EnableEventValidation="false", mas ao fazer isso a propriedade gvAvaliacao.EditIndex = -1 não funciona mais. Como resolvo isso e porque em outros forms isso não acontece? Vlw! Compartilhar este post Link para o post Compartilhar em outros sites
DaniloTec 0 Denunciar post Postado Setembro 2, 2009 Tentei colocar o enableEventValidation direto no weg.config e tmb não deu certo. <pages validateRequest="false" enableEventValidation="false" />O gvAvaliacao.EditIndex = -1 não oculta o form de edição. Se alguém souber de algo eu agradeço. :) Compartilhar este post Link para o post Compartilhar em outros sites
DaniloTec 0 Denunciar post Postado Setembro 3, 2009 Consegui resolver o problema colocando o link no lugar do botão. Deve ser algum problema com postback que o botão gera e o link não. Vlw! Compartilhar este post Link para o post Compartilhar em outros sites