RegisterForEventValidation
-
Hi , Im using a repeater controll in asp.net 2.0 , in that controll thee is a link button the the ItemTemplate of the repeter , although the we form is working fine on ym loca pc but while i delpoy it on the server it gives me this error : 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. Please could any one direct me ? im populating my repeater like this : If(!IsPostBack) { my repeater control gets populated from database(); } Also i am using RepeaterItemDataBoudn and repeaters ItemCommand events , to trapp the event when the link button inside the repeater is cliked .But this click is not getting trap with the repeaters event while I had deploye the web form on the stagingin server , and is working fine on my local machine . Help required immediatly ive enabled EventValidation to treu as well ....
Fad .