ObjectDataSource row counts

protected void odc_Selected(object sender, ObjectDataSourceStatusEventArgs e)
        {
            int rowCount = ((xDataTable)e.ReturnValue).Count;

            if (rowCount < 1)
                lblMessage.Text = "No rows found";
            else
                lblMessage.Text = rowCount + " rows found";
        }

Comments

Popular posts from this blog

Log4Net Different files in the same assembly

ටෙස්ලා

Setup Test automation with Selenium and Ruby