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
Surendra singh
NA
136
69.4k
how can i get multiple columns value from dropdown list ?
Sep 1 2011 7:58 AM
i have a tabe (Employee) which have 4 coloumns (empID,Name,Age,salary).
now i have filled data in dropdownlist. datatext field is Name and datavaluefield is EmpID.
Now i have disposed dataset object ds.
now hw cn i get salary of selected employee from dropdownlist without interecting with database. i dont wnt to fire any query again to database. i wnt to take infromation abt salary from table that is bind with dropdown list
ddlEmployee.DataSource = ds.table[0];
ddlEmployee.DataTextField = "Name";
ddlEmployee.DataValueField = "EmpID";
ddlEmployee.DataBind();
ddlEmployee.Items.Insert(0, "select");
pls help me
Thank you
Reply
Answers (
3
)
Databinding with combobox
How to get instance reference