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 8045473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:33:31+00:00 2026-06-05T05:33:31+00:00

I have to check if list item Exists in sharepoint list using C# .

  • 0

I have to check if list item Exists in sharepoint list using C# . if it Exists i have to update(increment) “Attempt Column” by 1 . i wrote few codes.but they are not working.i need this urgent.

  • 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-06-05T05:33:33+00:00Added an answer on June 5, 2026 at 5:33 am

    I’m not going to give you the code simply because you should attempt to solve it yourself first or at least explain that you have some knowledge of how you would go about it however i will help in give you a little insight.

    You can do this a couple of ways

    1
    Get the SPWeb object where the item is supposed to be. Normally context of the site.

    Get the list where the item is supposed to live SPWeb object.lists[listname or guidhere]

    Loop through the list checking if anything matches in each item or even checking if the object matches the object

    The other way is to use an SPQuery object

    set the SPquery.query = "YOUR CAML STATEMENT HERE"

    SPList<yourlist>.GetItems(SPQuery object)
    

    if the above returns >0 items you have a match

    Increment by one

    This should give you a good starting block

    cheers
    Truez

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have list of items with check boxes using this code: ProcessList = (ListView)
How to traverse the list view column so that we can check whether item
I have the following code: foreach (ListItem item in check.Items) { if (item.Selected) {
I would like for the generate List view contents to have a check added
I have a list of check boxes. For the check boxes that are selected,
I have an ASP:Repeater Which I would like to display a list of check
I have a simple list view with some check boxes in an alert dialog.
I have a form with a list of people with check boxes next to
I have a list of e-mails from one database which I want to check
I have a list in Python, and I want to check if any elements

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.