Quantcast
Channel: LINQ to XML query from multiple ListBox items - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article


LINQ 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

Browsing all 2 articles
Browse latest View live