System.Web.UI.WebControls.SqlDataSourceStatusEventArgs.AffectedRows Property

Gets the number of rows affected by a database operation.

Syntax

public int AffectedRows { get; }

Value

Documentation for this section has not yet been entered.

Remarks

All operations return the number of rows affected by the operation. The SqlDataSourceStatusEventArgs.AffectedRows property has the same value as the return value of the SqlDataSource.Update, SqlDataSource.Insert, and SqlDataSource.Delete methods.

When the SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments) method is called and the data source is set to SqlDataSourceMode.DataReader mode, the return value is 0 in all cases.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0