RegisterForEventValidation can only be called during Render();


remove :"RegisterForEventValidation can only be called during Render();" error

solution of "RegisterForEventValidation can only be called during Render();" error



hi developers,

when use asp.net control for rendering ,so sometimes ASP.NET gives the error
like "RegisterForEventValidation can only be called during Render();"
solution of this error is to add a property in .aspx file inside page directive



<%@ Page Language="C#" EnableEventValidation = "false" .... %>


you can apply EnableEventValidation = "false" on web.config file also for all pages


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: