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
Ramco Ramco
419
3.4k
547.8k
Cannot implicitly convert type string to Boolean
Jun 5 2021 7:40 AM
Hi
In Sql i have Bit DataType.
In Class i have written like below :-
[Display(Name = "Active")]
public bool IsActive { get; set; }
while (rdr.Read())
{
objLocation.Add(new Location
{
Id = rdr["Id"].ToString(),
Description = rdr["Description"].ToString(),
IsActive = rdr["IsActive"].ToString(),
});
}
Thanks
Reply
Answers (
2
)
Semantic/Foundation/Bootstrap Validation
Boolean Value Display