↧
Answer by Jeff Mercado for LINQ to XML query from multiple ListBox items
Try changing your where clause like so:.Where(b => lbxItems.Items .Cast<ListItem>() // needs a cast .Where(i => i.Selected) .Select(i => i.Value)...
View ArticleLINQ to XML query from multiple ListBox items
I need an example of linq to xml query.I have two ListBoxes with SelectionMode set to Multiple.My query for populating first ListBox is:var query = doc.Root.Descendants("Articles") .OrderBy(b =>...
View Article