string komut = "select SUM(DATEPART(hh, CAST([TimeIn] AS DATETIME))) + ( SUM(DATEPART(MINUTE, CAST([TimeIn] AS DATETIME))) / 60 ) + ( SUM(DATEPART(MINUTE, CAST([TimeIn] AS DATETIME))) % 60 + ( SUM(DATEPART(SECOND, CAST([TimeIn] AS DATETIME))) / 60 ) ) / 60 from hr.Attendance_new A INNER JOIN hr.Employee B ON A.EmployeeNo=B.EmpID where A.EmployeeNo='" + (user.EmployeeID.ToString()) + "' AND Year(A.DateIn) like '%'+'" + DateTime.Now.Year.ToString()+ "'+'%' group by A.EmployeeNo";
how to show this query result in label .this query calculate total hour and work fine but i want to show this query result in label .plz help me

Hussain AhmedPosted Sep 17, 2014, 1:48 AM
Ramesh MaruthiPosted Sep 16, 2014, 11:02 AM
Abhishek KumarPosted Sep 16, 2014, 5:02 AM
Result can be displayed using label control.
Label1.Text=Lkomut
Abhishek
VulpesPosted Sep 16, 2014, 4:56 AM