Invalid postback or callback argument

1 posts, 0 answers
  1. mathieu
    mathieu avatar
    22 posts
    Member since:
    Jun 2012

    Posted 30 Jan 2013 Link to this post


    i have the exception:
    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.

    Everything is working correctly when i don't use the event OnTabClick.
    But I need it and when i try to attach a function to this event (either from the markup or the code behind) i get the exception above.
    the hierarchy of the markup is as follow : 

    The markup is :
    <telerik:RadTabStrip runat="server" ID="TabStrip" MultiPageID="MultiPage" OnTabClick="TabStrip_TabClick"
        SelectedIndex="0" Font-Size="Smaller" Orientation="VerticalLeft">
            <telerik:RadTab Text="Note de calcul"     PageViewID="rpv_noteCalcul"    Value="noteCalcul" Selected="True" />
            <telerik:RadTab Text="Crédits" PageViewID="rpv_Credits"    Value="Credits" />
            <telerik:RadTab Text="Paiements"      PageViewID="rpv_Paiements"  Value="Paiements" />
            <telerik:RadTab Text="Distribution"   PageViewID="rpv_Distribution" Value="Distribution" />

    when i tried to attach the event from the code behind i did :  (when i did i remove the argument OnTabClick from the markup)
    protected void Page_Init(Object sender, EventArgs e)
        TabStrip.TabClick += new RadTabStripEventHandler(TabStrip_TabClick);

    the function that i need to call:
    protected void TabStrip_TabClick(object sender, RadTabStripEventArgs e)

    Hope you can help me 

    Thank you 

Back to Top