BaseValidator.GetControlValidationValue Method

Gets the value associated with the specified input control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected:
String^ GetControlValidationValue (
	String^ name
)
protected String GetControlValidationValue (
	String name
)
protected function GetControlValidationValue (
	name : String
) : String
Not applicable.

Parameters

name

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

Return Value

The value associated with the specified input control.

Use the GetControlValidationValue 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 TextBox control, as well as the value of the selected item from a ListBox control. If the specified control cannot be found, a null reference (Nothing in Visual Basic) is returned.

NoteNote:

This method is used primarily by control developers.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: