Rediger

Del via


DetailsView.OnItemInserting(DetailsViewInsertEventArgs) Method

Definition

Raises the ItemInserting event.

protected:
 virtual void OnItemInserting(System::Web::UI::WebControls::DetailsViewInsertEventArgs ^ e);
protected virtual void OnItemInserting (System.Web.UI.WebControls.DetailsViewInsertEventArgs e);
abstract member OnItemInserting : System.Web.UI.WebControls.DetailsViewInsertEventArgs -> unit
override this.OnItemInserting : System.Web.UI.WebControls.DetailsViewInsertEventArgs -> unit
Protected Overridable Sub OnItemInserting (e As DetailsViewInsertEventArgs)

Parameters

e
DetailsViewInsertEventArgs

A DetailsViewInsertEventArgs that contains the event data.

Exceptions

There is no handler for the ItemInserting event.

Remarks

The OnItemInserting method is called by the DetailsView control to raise the ItemInserting event. It is generally used by control developers when extending the DetailsView class.

The OnItemInserting method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnItemInserting(DetailsViewInsertEventArgs) in a derived class, be sure to call the base class's OnItemInserting(DetailsViewInsertEventArgs) method so that registered delegates receive the event.

Applies to

See also