Please suggest how can i use count function in asp.net using c#
current code mentioned below
string str = " SELECT COUNT(sno) FROM customer_sa ";
dt = dl.ExecuteDataTable(str);
if (dt.Rows.Count > 0)
{
lblregistrationcount.Text = str;
}
OUT PUT
lblregistrationcount.Text="SELECT COUNT(sno) FROM customer_sa ";
please suggest.