Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WebPart.ID Property

Windows SharePoint Services 3

Gets or sets an identifier for the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[WebPartStorageAttribute(Storage = Storage.Shared)]
[BrowsableAttribute(false)]
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.

NoteNote

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

Community Additions

ADD
Show:
© 2015 Microsoft