<%@ Page EnableEventValidation="false" %> is the best way to overcome this.
"Misbah Arefin" <MisbahArefin@discussions.microsoft.com> wrote in message
news:0A2862A0-9780-44D8-A526-2B829DD0C7BE@microsoft.com...
> One solution (although not the best solution) try adding this into the
> <system.web> section of your web.config file:
>
> <pages enableEventValidation="false" />
>
>
>
> Another solution is to register your control for event validation. Simply
> add the following call in the PreRender or Render page life cycle then
> your
> control should work without having to turn off eventValidation:
>
> Page.ClientScript.RegisterForEventValidation(this.UniqueID);
>
>
>
> --
> Misbah Arefin
>
>
>
> "Techeek" wrote:
>
>> I am getting this error on click of a link button. If anbody has
>> got the same error and have a solution for it plese respond.
>>
>> System.ArgumentException: 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.
>> --
>> techeek
>>
http://oxyin.com/techeek