Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPWeb Class
SPWeb Properties
 AllowUnsafeUpdates Property
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPWeb.AllowUnsafeUpdates Property (Microsoft.SharePoint)
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.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Property AllowUnsafeUpdates As Boolean
Visual Basic (Usage)
Dim instance As SPWeb
Dim value As Boolean

value = instance.AllowUnsafeUpdates

instance.AllowUnsafeUpdates = value
C#
public bool AllowUnsafeUpdates { get; set; }

Property Value

true if unsafe updates are allowed; otherwise, false.
CautionCaution:

Setting this property to true opens security risks, potentially introducing cross-site scripting vulnerabilities.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker