Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPart.ID property

Gets or sets an identifier for the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[WebPartStorageAttribute(Storage = Storage.Shared)]
public override string ID { get; set; }

Property value

Type: System.String
A string value that returns the identifier for the Web Part.

The ID property will be written out by ASP.NET as the __WebPartId attribute on the tag for the Web Part.


Do not set this property when a Web Part is contained in a WebPartZone control; the Web Part infrastructure automatically sets this value.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.