Wednesday, December 17, 2008

Row count of SqlDataSource

Use the Selected event on the SqlDataSource and get the Affected Rows from it.

protected void SqlDataSource1_Selected(object sender, SqlDataSourceStatusEventArgs e)
{
int total_count = e.AffectedRows;
}

No comments:

Post a Comment