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


VulpesRank #55 · 29.2K reputationPosted Sep 16, 2014, 12:56 AM EDT
Ramesh MaruthiRank #937 · 2.2K reputationPosted Sep 16, 2014, 7:02 AM EDT
Abhishek KumarRank #510 · 4.8K reputationPosted Sep 16, 2014, 1:02 AM EDT
Result can be displayed using label control.
Label1.Text=Lkomut
Abhishek
Hussain AhmedRank #1,271 · 1.4K reputationPosted Sep 16, 2014, 9:48 PM EDT