View Single Post
  #2 (permalink)  
Old February 19th, 2008, 10:46 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This usually happens when that data that is being posted could be harmful. An example would be a textbox in which you enter HTML. Because HTML can contain javascript tags which could be harmful, ASP.NET will, by default, throw the exception you are seeing because it fails post validation. If you do as the error message suggests and set EnableEventValidation to false, this problem should go away. However, be aware that you are opening up the possibility of malicious data entry.

-Peter
peterlanoie.blog