Question about event validation
-
I have two server controls on page, both have buttons what must postback. One control uses validation and work ok. Other what should not validate input causes 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. I`ve tried to set CausesValidation="False", but it wont help :( Any suggestions? Sorry for my bad english :(
It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)
-
I have two server controls on page, both have buttons what must postback. One control uses validation and work ok. Other what should not validate input causes 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. I`ve tried to set CausesValidation="False", but it wont help :( Any suggestions? Sorry for my bad english :(
It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)