Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    8

    Imagebutton in un Gridview

    Devo scrivere una funzione sull'onclick (lato server) di un'image button, se l'imagebutton è esterna al gridview funziona se è interna no, la funzione effettua un semplice response.write di prova.

    l'errore è:

    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.

    non so che fare

  2. #2
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    8
    ho messo nel webconfig enableEventValidation="false" e ora funziona.. comporta davvero problemi di sicurezza?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.