Get row count from ObjectDataSource

public int PublicRowCount = 0;
protected void ObjectDataSource1_Selected(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)
{
 PublicRowCount = e.ReturnValue.Rows.Count;
}

No comments:

Post a Comment