Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7082573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:04:16+00:00 2026-05-28T07:04:16+00:00

I´m starting with Sharepoint 2010 development with Visual Studio and I´ve been the entire

  • 0

I´m starting with Sharepoint 2010 development with Visual Studio and I´ve been the entire evening looking for a solution to retrieve data from a list according with the value of one of its fields.

I´m looking for something like

SPListItem item = list.GetItemWithValue("Field_Name");

What I´m trying to achieve is convert a SPList into a html list with a TreeView format.

Thanks a lot for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:04:17+00:00Added an answer on May 28, 2026 at 7:04 am

    You can do this by using CAML query.

    SPQuery oQuery = new SPQuery();
    oQuery.Query= " <Where><Eq><FieldRef Name='Field_Name' /><Value Type='Text'>Field_Value</Value></Eq></Where>";
    SPListItemCollection items = mylist.GetItems(oQuery);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am starting work on a SharePoint 2010 Project and using the Visual Studio
We've started to adopt SharePoint 2010, and are starting to manually migrate content from
I have a list in SharePoint 2010 with some columns. All are default types.
I'm having an issue updating a RichText box on a SharePoint 2010 list. _batchElement.InnerXml
I am starting to do a lot of sharepoint development lately, and some of
I'm just starting out looking at SharePoint workflows - all the information I've seen
I am new to Sharepoint, starting to learn how to develop for it. From
I'm fairly new to Sharepoint 2010 development. Whenever I need to make a UI
I'm just starting out with SharePoint 2010 for Internet Sites, but most of what
OK, we're just starting our Sharepoint development, and I'm a little stuck on one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.