TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hussain Ahmed
702
1.3k
1.7m
show sql query result in label
Sep 16 2014 3:58 AM
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
Reply
Answers (
4
)
I Want To Fill a DropdownList using Store Procedure
GridView Bind based on List values in viewstate.