DataListCommandEventArgs::CommandSource Property

 

Gets the source of the command.

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

public:
property Object^ CommandSource {
	Object^ get();
}

Property Value

Type: System::Object^

The source of the command.

Use the CommandSource property to determine the command source that raised the event. This property is commonly used to determine which command raises the event. You can then take appropriate action, based on the command.

The following example demonstrates how to use the CommandSource property to determine the command selected by the user. It then performs the appropriate action based, on the command.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: