Reason: There are multiple scenario in which this error come.
if we try to change the property of asp.net control through the Javascript after page load then above issue comes.
This error might be coming from one of the user control present on the page
(Search or header)
Or
forgot to add an ID to a dynamically created control.
Or
check design contain two nested <form></form> tag
Or
other......
Solution:
Remove two nested <form></form> tag
OR
<pages validateRequest="false" enableEventValidation="false" />
and do Toolscriptmanager partial rendering is enabled
OR
IsPostBack in page load
OR
Use update panel which attribute is changing due to javascript
OR
ScriptManager scriptManager = ScriptManager.GetCurrent(this. Page);
scriptManager. RegisterPostBackControl( buton1);
OR
Other...........
No comments:
Post a Comment