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
Priyanka Singh
690
1.4k
676.6k
Entity Framework error whilepopulate the TextBox in the form
Jun 20 2019 12:22 AM
I got the error while populating dropdownlist in Entity Framework.
private
void
PopulateFormFieds(
int
userID)
{
UserManager userMgr =
new
UserManager();
var result = userMgr.GetUserDetail(userID);
if
(result.Count > 0)
{
var user = result.First();
tbFirstName.Text = user.FirstName;
tbLastName.Text = user.LastName;
tbContactNumber.Text = user.ContactNumber;
}
else
{
//NO RECORDS FOUND.
tbFirstName.Text =
string
.Empty;
tbLastName.Text =
string
.Empty;
tbContactNumber.Text =
string
.Empty;
}
}
protected
void
ddlUser_SelectedIndexChanged(
object
sender, EventArgs e)
{
PopulateFormFieds(Convert.ToInt32(ddlUser.SelectedItem.Value));
}
Operator '>' cannot be applied to operands of type 'method group' and 'int' in
if
(result.Count > 0)
Help me to resolve the problem.Thank You.
Reply
Answers (
15
)
Vehicle Tracking System
json file convert in to dataset using vb.net