Created
February 27, 2016 08:11
-
-
Save eternaltung/eae58048dd4b4f5bb606 to your computer and use it in GitHub Desktop.
Asp.net Web Forms Bootstrap MultiSelect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Button1_Click(object sender, EventArgs e) | |
{ | |
var query = ListBox1.Items.Cast<ListItem>().Where(x => x.Selected).Select(y => y.Text).ToArray(); | |
Label1.Text = string.Join(",",query); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment