Sometimes whenever we update any list item, list or SPWeb instance you may get
"The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again"
This is because of some security validation while updating the modification to the content database, so, in order to escape from that exception we have to make AllowUnsafeUpdates property of the SPWeb instance as true.
SPWeb oWeb = new SPWeb();
oWeb.AllowUnsafeUpdates = true;
AllowUnsafeUpdates property is used to Gets or sets a Boolean value that specifies whether to allow updates to the database as a result of a GET request or without requiring a security validation. SPSite class also has this property.
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/exception-the-security-validation-for-this-page-is-invalid-click-back-in-your-web-browser-refresh-the-page-and-try-your-operation-again.aspx
http://ktskumar.wordpress.com/2009/03/09/the-security-validation-for-this-page-is-invalid-click-back-in-your-web-browser-refresh-the-page-and-try-your-operation-again/