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
Ghouse Hussain
NA
41
24.8k
Data source is an invalid type. It must be either an IListS
May 17 2016 3:36 AM
i have a query like
var count = db.Employees.Count (x =>(x.Salary >0));
Grid1.DataSource = count;
Grid1.DataBind();
but wen im execute its its throughing an error Like
Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.
and wen i was writen code like Grid1.DataSource = count.tostring();
its not showing output properly
Reply
Answers (
2
)
Please help me How to create login page and homepage
login age catch id through session