Author: jfbomber | Posted on: 1/31/2009 7:55:48 PM | Views : 331

 When I try to populate a listbox with Linq I get the following:

 
I know it is something easy but i cant figure it out. I just want the list box to have a value of "ID" and the text of "Title"
Here is my code.
 
    protected void Page_Load(object sender, EventArgs e)
    {
        string community = Request.QueryString["Area"];
        XDocument xdoc = XDocument.Load(Server.MapPath("~/App_Data/Blogs.xml"));
       
        var query = from a in xdoc.Elements("blogs").Elements(community).Elements("blogEntry")
        & ...

Go to the complete details ...