ID Property (Common)

Sets or returns the identifier for the specified object. The default value is . an empty string ("").

public virtual string ID {
   get,
   set
}

Inheritance

The following is a list of the classes that inherit the ID property from the System.Web.UI.Control base class.

AdRotator Class MobileListItem Class
BaseValidator Class MobilePage Class
Calendar Class ObjectList Class
PhoneCall Class ObjectListItem Class
Command Class PagedControl Class
CompareValidator Class Panel Class
CustomValidator Class RangeValidator Class
DeviceSpecific Class RegularExpressionValidator Class
ErrorFormatterPage Class RequiredFieldValidator Class
Form Class SelectionList Class
Image Class StyleSheet Class
Label Class TextBox Class
Link Class TextControl Class
List Class TextView Class
LiteralText Class ValidationSummary Class
MobileControl Class  

Remarks

This property is required only if you require subsequent programmatic access; otherwise, it is not a required property in a control.

See Also

Applies to: System.Web.UI.Control Base Class