HI,
I read a lot of articles about this problem but none answer my case :-(
So here is my problem:
I have a complex page with several user control and when i click on the linkbutton (or button) of the commanditemTemplate :
I get this error in the javascript console:
i tried to add :
with this line i don't have the exception but that process a full postback and so the first radgrid is collapse..
i also tried with RegisterAsyncPostBackControl but i get the error like if there was nothing
here is the full hierarchy, i use dotnetnuke so i can't change the page validation
ascx ->
ascx -> radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> radgrid -> Nesteviewtemplate ->
ascx -> radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> RadAjaxPanel -> radgrid -> CommandItemTemplate -> LinkButton
Thank you very much for your time :-)
I read a lot of articles about this problem but none answer my case :-(
So here is my problem:
I have a complex page with several user control and when i click on the linkbutton (or button) of the commanditemTemplate :
<CommandItemTemplate> <table class="rgCommandTable" border="0" style="width:100%;"> <tr> <td style="text-align: left"> <asp:Panel ID="MakeLotDistribution" runat="server"> <asp:Button ID="MakeLotDistributionButton" runat="server" CausesValidation="False" title="Faire un lot de distribution" CommandName="InitInsert" class="rgAdd" OnClientClick="if (!checkIfSelected(this)) return;" /> <asp:LinkButton ID="MakeLotDistributionlien" runat="server" CausesValidation="False" Text="Faire un lot de distribution" CommandName="InitInsert" OnClientClick="return checkIfSelected(this);" /> </asp:Panel> </td> <td style="text-align: right"> <asp:Button ID="RefreshButton" runat="server" Text=" " title="Rafraîchir" class="rgRefresh" /> <asp:LinkButton ID="RebindGridButton" runat="server" CausesValidation="False" >Rafraîchir</asp:LinkButton> </td> </tr> </table></CommandItemTemplate>
I get this error in the javascript console:
Uncaught 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.i tried to add :
protected override void OnInit(EventArgs e){ RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.DistributionItemGrid);}with this line i don't have the exception but that process a full postback and so the first radgrid is collapse..
i also tried with RegisterAsyncPostBackControl but i get the error like if there was nothing
here is the full hierarchy, i use dotnetnuke so i can't change the page validation
ascx ->
ascx -> radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> radgrid -> Nesteviewtemplate ->
ascx -> radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> RadAjaxPanel -> radgrid -> CommandItemTemplate -> LinkButton
Thank you very much for your time :-)