Revision: 11020
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 21, 2009 07:38 by leonbda
Initial Code
protected void ObjectDataSource1_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception == null)
{
DataTable dt = (DataTable)e.ReturnValue;
if (dt != null)
TotalLabel.Text = dt.Rows.Count.ToString();
else
TotalLabel.Text = "0";
}
}
Initial URL
Initial Description
Get number of records in DataTable when calling a method with ObjectDataSource.
Initial Title
Count records in Datatable with ObjectDataSource
Initial Tags
Initial Language
C#