Click here to Skip to main content
15,564,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i use update panel for check box which is placed in the HTML table. what is happening is when user Click on that check box it will enable a Text box which is placed outside the update panel. But when this happens i got a asp.net event validation error as follows


invalid postback or callback argument. Event validation is enabled using 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.


but i dnt want to reduce Security by adjusting enabling event validation as false. if there any way to avoid this problem. Should i put both the check box and textbox both under the update panel? if there anyway to avoid this validation matter without putting both the Check box and Text box under the update panel? Thank in advance!!!
Posted

1 solution

Have a look here on why such error occurs: Invalid postback or callback argument solution. Event validation...[^]

Interesting to read one blog entry related to same: “Invalid postback or callback argument” in ASP.NET[^] - It exposes few other reasons on why one can get the same error. Nice read.


Either design it such that event validations does not raise this error Or set it to false.

BTW, before moving the checkbox outside, move textbox inside OR use Javascript to enable it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900