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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:54:06+00:00 2026-05-11T00:54:06+00:00

Firstly, I’m a newbie to C# and SharePoint, (less than a month’s experience) so

  • 0

Firstly, I’m a newbie to C# and SharePoint, (less than a month’s experience) so apologies if this is an obvious or easy question but I’ve been trawling the net for a couple of days now with absolutely no success.

I have an xslt file that I have stored in a subdirectory of ‘Style Library’ from within the new website but how can I access this from within c#?

I’ve looked at SPSite and SPWeb but neither seems able to do quite what I want.

Any and all help will be gratefully received.

Many thanks

c#newbie

  • 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. 2026-05-11T00:54:07+00:00Added an answer on May 11, 2026 at 12:54 am

    Here is a bit of code to retrieve the list items from a list:

    SPList list = web.Lists['MyLibrary'];             if (list != null)             {                 var results = from SPListItem listItem in list.Items                               select new                                {                                   xxx = (string)listItem['FieldName']),                                   yyy  = (string)listItem['AnotherField'],                                   zzz = (string)listItem['Field']                               };             } 

    To retrieve a file you could also use this method on SPWeb: GetFileAsString

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

Sidebar

Related Questions

Firstly apologies for the length of this question, and for asking about the Facebook
Firstly, I've asked this question elsewhere , but meta.stackoverflow.com seems to think that asking
Firstly, sorry about the long question... but this is doing my head in. Any
Firstly, I'm new to Android (so I apologize if this question is ignorant) but
Firstly, this is not a question about repository synchronisation for which there are numerous
Firstly, is it possible? Been struggling with this one for hours; I think the
Firstly, I want to restrict this question to web development only. So this is
Firstly: apologies if this is a duplicate post. Things got a bit confusing as
Firstly I have tried to manage it with the viewWillDisapper-method, but this not detailed
Firstly I would like to accept that it is a homework question , but

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.