Thursday, February 7, 2013

The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.



If we get the above error in SharePoint, you need to add one tag in the aspx page,
 using Microsoft.SharePoint.Utilities;
<SharePoint:FormDigest ID="FormDigest1" runat="server" />

protected override void OnInit(EventArgs e)
        {
            if (Page.IsPostBack)
                SPUtility.ValidateFormDigest();
            base.OnInit(e);
        }

No comments:

Post a Comment