System.Web.UI.WebControls.ControlParameter.ControlID Property

Specifies the name of the control that the System.Web.UI.WebControls.ControlParameter object binds to.

Syntax

[System.Web.UI.IDReferenceProperty(typeof(System.Web.UI.Control))]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.ControlIDConverter))]
[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
public string ControlID { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ControlParameter.ControlID property is a required property that identifies the System.Web.UI.Control instance that the System.Web.UI.WebControls.ControlParameter object binds to at run time.

Typically, the ControlParameter.ControlID and ControlParameter.PropertyName properties are set for the ControlParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method to correctly bind to a control. If you do not set the ControlParameter.ControlID property, the ControlParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method throws an ArgumentException exception when called.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0