10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Vikas Singh
1.9k
235
6.5k
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