Kayıtlar

Temmuz, 2012 tarihine ait yayınlar gösteriliyor

'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.' when calling method: [nsIDOMEventListener::handleEvent]

Merhabalar, Projenizde Asp.net ajax kullanımıda böyle bir hata alıyorsan ajax tetiklediğiniz kontrolünüzün boş değer döndürüyordur. örnek verecek olursak; Seneryomuz gereği bir dropdownlist imiz olsun ve içindeki değerler değiştikçe panelimizi gizleyip açalım.Bu olayıda ajax içinde yapalım.         protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)     {          if ( DropDownList2.SelectedItem.Text=="Ürün" )            {               this.panelProduct.Visible = true;// ilk aksiyonda çalışacak ve sonrasında başlıkdaki hata alınacaktır.            }              else           {             this.panelProduct.Visible = false;           }    } <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">          <asp:ListItem Value="0">Seçiniz..</asp:ListItem>          <asp:ListItem V

Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: 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.' when calling method: [nsIDOMEventListener::handleEvent]

Merhabalar, Eğer sayfanızda "Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: 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.' when calling method: [nsIDOMEventListener::handleEvent]" böyle bir hata alıyorsanız hata aldğınız aspx sayfanıza en yukarı EnableEventValidation="false" olarak ayarlayın İyi Çalışmalar