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

  • Home
  • SEARCH
  • 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 6045673
In Process

The Archive Base Latest Questions

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

I need to write an application to update a list on a SharePoint 2010

  • 0

I need to write an application to update a list on a SharePoint 2010 site.

I found the “SPSite” which I can create with the URL, but I can’t figure out how to specify with which user I want to connect.

The user isn’t the current windows user, and the program isn’t executed on the server.

I saw the possibility to give a “SPUserToken”, but in my method I only have the user, the domain, and his password, so how can I generate this user(and I think that this user is unknown on the system executing the code, but known on the server).

Where can I specify that?

  • 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-23T07:09:05+00:00Added an answer on May 23, 2026 at 7:09 am

    Since you’re using the client object model, you won’t be working with the SPSite class (which is part of the server object model).

    Instead, you should create an instance of the ClientContext class and supply your authentication credentials through its aptly-named Credentials property. Then you can use it to fetch the List object you want to update:

    using System.Net;
    using Microsoft.SharePoint.Client;
    
    using (ClientContext context = new ClientContext("http://yourserver/")) {
        context.Credentials = new NetworkCredential("user", "password", "domain");
        List list = context.Web.Lists.GetByTitle("Some List");
        context.ExecuteQuery();
    
        // Now update the list.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a java application which can merge docx files. Any suggestions?
I need to write a simple C# .NET application to retrieve, update, and insert
I need to write a forum application for a friend's web site. I want
Possible Duplicate: How can I write a Java application that can update itself at
I want to write an application which has 2 EJBs. This application can run
I need to write a Delphi application that pulls entries up from various tables
I need to write a web application using SQL Server 2005, asp.net, and ado.net.
I need to write a .NET application that listens to a SMS message ,
I need to write cross platform application (basically CRUD). Is usage of Java Swing
I need to write a scientific application in C++ doing a lot of computations

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.