I have tried a little bit...
Select COUNT(*) as Present from T_CAL_Attendance where Attendance_Type='P' and [Date] BETWEEN '" + FromDate + "' AND '" + ToDate + "' and Name='" + UName + "'
I have tested my code in SQL, i got the correct output but the same code i put in codebehind it retreving count with date....
Pls Help me if u know the answer.....
Thanks & Regards
JENI