SharePoint Best Practices: Form Digest in ASP .Net Pages within SharePoint

Written by:

If you ever find yourself modifying data within SharePoint using custom ASP .Net pages, you will undoubtedly have run into errors regarding the pages security validation being invalid.  Rather than disabling security validation, which can leave your pages open to XSS attacks, follow the recommendations in the following blog post regarding using the FormDigest tag to safely validate post backs.

http://epham.wordpress.com/2007/01/22/how-to-fix-security-validation-errors-in-sharepoint-aspnet-page/

-Lee

Posted on April 8th, 2010 in Technology, Tips & Tricks.