System.Web.UI.WebControls.BaseValidator.GetControlValidationValue Method

Gets the value associated with the specified input control.

Syntax

protected string GetControlValidationValue (string name)

Parameters

name
The name of the input control to get the value from.

Returns

The value associated with the specified input control.

Remarks

Use the BaseValidator.GetControlValidationValue(string) method to get the value associated with the specified input control, regardless of the control type. For example, you can use this method to get the value in a System.Web.UI.WebControls.TextBox control, as well as the value of the selected item from a System.Web.UI.WebControls.ListBox control. If the specified control cannot be found, null is returned.

Note:

This method is used primarily by control developers.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0