14 Ocak 2014 Salı

Invalid postback or callback argument.

GridView Update işlemini yapmaya çalışırken karşıma çıkan hata:
  
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.
Çözüm için Page_Load() içine isPostBack şartının koyulması lazım.

Page_Load() {
    if(!isPostBack){
          //PAGE_LOAD İÇERİĞİNİ BU KOŞULUN ALTINA YAZMAK GEREKİYOR
    }
}

Hiç yorum yok:

Yorum Gönder