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
Vikas Singh
1.3k
410
14.9k
Multi select DropDownList issue please help
Nov 26 2020 3:29 AM
Hello sir i have a dropdownlist i want to select multiple employees from the dropdown list this is working.
Now i want to assign the selected value in a string or hiddenfeild. Please help
here is a drop down list which is bind dynamically
<asp:DropDownList runat=
"server"
ID=
"ddlemployee"
class
=
"form-control select2"
multiple=
"multiple"
data-placeholder=
"Select a State"
>
</asp:DropDownList>
DataTable dtMember = objaccess.GetDatatable(
"select Emp_no,Emp_Name from Emptable"
);
if
(dtMember.Rows.Count > 0)
{
ddlemployee.DataSource = dtMember;
ddlemployee.DataValueField =
"Emp_no"
;
ddlemployee.DataTextField =
"Emp_Name"
;
ddlemployee.DataBind();
}
Reply
Answers (
2
)
MVC Async Request to refresh data with Jquery
Crystal Reports - Database Login failed only on production machine