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
neha verma
NA
49
8.3k
drop down binding
Jan 30 2019 4:46 AM
SqlCommand cmd = new SqlCommand("select FirstName+''+LastName from EmployeeMaster", con);
SqlDataAdapter dap = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
dap.Fill(ds);
ddldetails.DataSource = ds;
ddldetails.DataTextField = "FirstName+''+LastName";//Database table filed name for display in dropdown
ddldetails.DataBind();
getting an exception-
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'FirstName+''+LastName'.
Please help me with this.
Reply
Answers (
4
)
outlook meeting invite
Date and time picker