FormViewInsertEventArgs.CommandArgument Property

Gets the command argument for the insert operation passed to the FormView control.

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

public:
property Object^ CommandArgument {
	Object^ get ();
}
/** @property */
public Object get_CommandArgument ()

public function get CommandArgument () : Object

Not applicable.

Property Value

The command argument for the insert operation passed to the FormView control.

When you create an Insert button for one of the templates in a FormView control, you can optionally specify a command argument for the button by using the CommandArgument property. The command argument usually contains any extra information you want to accompany the insert command, such the value for the key field. The CommandArgument property is provided as a convenient way to determine the value of the Insert button's command argument.

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

Community Additions

ADD
Show: