Set EnableEventValidation to false in user control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mar Anthony
    New Member
    • Nov 2010
    • 6

    Set EnableEventValidation to false in user control

    Hi,

    Is there any way we can change the page EnableEventVali dation value to false from a user control? I tried setting this to false inside the page_load method of my user control but it gave me an error “The 'EnableEventVal idation' property can only be set in the page directive or in the <pages> configuration section”. The problem here is I am just creating a module for an existing website and there is no way I can change this property from the Page level.

    Any comments will be much appreciated.

    Thanks!
Working...