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
gavriel ankri
NA
39
48.6k
Show count items from sql on a label
Feb 28 2012 1:27 AM
Hello
I tried to show on a label how many items I have on SQL table
I did this code
public DataTable CountItemsonGrid()
{
return dal.GetTable(string.Format("SELECT COUNT(Finish) AS Expr1 FROM Problems WHERE (Finish = 'false')"));
}
and then
lbcount.Text = pplLogic.CountItemsonGrid().ToString();
whats wrong ?
Reply
Answers (
4
)
One GridView only
How To Send data Of Grid View through Bulk Mail in asp.net