.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Get names of all lists and documnet libraries

Posted By:      Posted Date: September 18, 2010    Points: 0   Category :SharePoint
Hi all.. How can i get all names of lists and documnet libraries programmtically ... Thanks

View Complete Post

More Related Resource Links

Updating Task Lists and Form Libraries From Workflow Form


There are actually two separate (I think) problems here. The scenario: I used the SharePoint Designer 2007 to create a workflow attached to a form library. When a form is submitted to the library, a To-Do-Item is created on a task list. The To-Do-Item is initially assigned to a GROUP. A user from the group then selects the name of an individual from a choice list in edit item. This person now becomes the Assigned To for the task.

What is needed is 1) To update the Assigned To column of the Form library when someone in the GROUP assigns the task to an INDIVIDUAL; and 2) To have the Due Date from the submitted InfoPath form propagate to the task list.

I've tried having one workflow try to do everything and also having a secondary workflow set up on the task list to do the task assignment update but have not been successful in solving either issue. I don’t think that I am really understanding how to Define Workflow Lookup when not working with the Current Item. I know what fields I want but I don’

Duplicate column names from forms in SharePoint lists



I'm in the process of migrating from a WSS 2 site to WSS 3/MOSS. On the old site I used an Infopath 2003 form for absence requests. During the migration I now use Infopath 2007. There wasn't any problem initially when the form was stored with the SharePoint form library. However, when I published the form as a content type from Infopath 2007 and then added that content type to the form library, there are two columns for each piece of data from the form. (One from the content type and one from the form list.) I relinked each old form (list content type) to the new AbsenceRequest content type and removed the original one from the list. However, the duplicate column names are still there. Since they came from the Infopath form, they are not editable or deletable from the SharePoint list management interface. The duplicate column names make it tough to build views since it isn't apparent which column to use in the form building UI. It can be determined form the overview display, but it is very cumbersome.


Does anyone know a way to get rid of the old, absolute, columns?

how do i develop a cascade drop down lists which get the chart names from excel sheets

hi i have to develop a cascade dropdownlist. one of the drop down is used to retrive only excel docs from a specific doc library and and the other drop down to get all the chart names and attach it to the second dropdown list in doc lib item changed event thanks    

Issues with updating Lists with Manager Names and User Profile Imports in SharePoint 2010 Server

I am having a curious problem with SharePoint 2010 Server. I have imported all the user profiles of our organization into SharePoint User Profile Service Application from our Active Directory. When the Manager name imports it comes in as domain/login. The organizational browser seems to work for MOST people, but not all. I believe this is contributing to my second problem, which is, I have setup a very simple workflow in SharePoint Designer that simply looks up the persons Manager, then places that information into a field called "Approval 1". After that it looks at Approval 1 and get the Manager name and populated "Approval 2" with that information, and so on. I have used an Impersonation Step as the Farm Administrator in the workflow and I have done it without the impersonation step. Both results in the same problem. When I enter my name into the list and run the workflow it runs beautifully give every manager up the chain to the top. However, if I put any other person's name in there it gives me the error "Workflow failed to get user profile for user: ____". I went to my supervisor's office and asked him to run the workflow. Using his login he had the exact same result--if my name was in there it worked great, otherwise, it gave an error. Any help with this strange error would be greatly appreciated.  Thanks

Report on Sites, Lists and Libraries with Unique Permissions

I would like to get a report on Sites, Pages, Lists, Libraries, Items and Documents under a Site Collection having Unique Permissions. What is the best way to accomplish that ?

Maximum number of Document libraries or Lists that can be created in a Site collection of sharepoint


Hello Guys, 

what is the maximum limit for creating document libraries in sharepoint 2010, is there any limit? if so can you give me the number and details where do i find it.

Thanks in advance.

Why am I missing option to delete lists and libraries?


I just setup my first SharePoint 2010 site using the Publishing Site template. I seem to be missing the option to delete libraries. From what I understand, the option should be listed under Permissions and Management Settings on the List/Library Settings page. However, I don't have this option... I am logged in with an account that has Full Control permission.

What am I missing? Thanks!

Unable to access Libraries/Lists when logged in as Owner


I'll start at the beginning...

  • SharePoint 2010 Ent. running on Server 2008 R2 Ent. x64. on ESXi 4.1.
  • 8GB RAM with 4 processors (virtual)

I followed the TechNet instructions for pre-install guidelines to the letter, ran the prequisites part of the install and had zero errors (everything installed successfully). I performed a stand alone install, using for IT Department at the moment. Followed everything to the letter and had no issues. Once complete I could access the Central Admin area, had three flagged issues appear. All I fixed via TechNet instructions.

Yes, I've rebooted several times.

As the Admin I am able to access the Team site I had it create and create lists etc. I went on to create a sub site and gave it unique permissions, no errors. I then created lists in the sub site without any issues. I then assigned my normal user account as a 'Home Owner' and was able to access the team site. I then gave my normal user account 'IT Owner' (unique permission group for sub site) and it allowed me access to sub site. 

When I try and access settings I get the following error popup...

   File Not Found.

   Troubleshoot issues with Microsoft SharePoint Foundation.

   Correlation ID: 13bd440f-327c-4444-b632-2828e205cf1f


Best way to get anonymous InfoPath data into multiple lists/libraries?


I'm trying to figure out the best way to create a solution for the situation I have.  I'm still pretty new to SharePoint, and very new to InfoPath.  I'm working with MOSS 2007 and I've created a browser-enabled InfoPath 2007 form that I need to make available to both anonymous users at the top level of my site, and AD authenticated users from within a secured site collection.  It will be important for me to be able to determine whether the form is being submitted by an anonymous or authenticated user, as it will have some fields that need to be handled differently in each case.  Once the forms are submitted, I need to be able to store them in a forms library in the secured site collection, and also create a list item in the top level site with some of the basic info from the form.  That list will be visible and searchable for the anonymous users.

After searching through this forum, I've found at least 2 possible ways for anonymous users to submit forms to a form library.  Right now I'm leaning towards having it submit to a web service which would handle the task of moving/copying the data to the proper places.  Would that be the best solution in this case, or am I missing something?

The next thing I'm not sure about is what my options are for presenting the form 

Lists and Libraries are not populated in Sharepoint 2010 Designer in server 2008



We have installed SharePoint Foundation 2010 in Windows server 2008 R2 machine. Also having SharePoint Designer 2010 in the same machine. While opening any sites in the Designer, it does not populating the lists and libraries in the same site.

Is there need to apply any fix for Windows server 2008 to solve this?If then which fix..

Thanks in Advance,


Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Export Visio Database Table Names to Excel

If you use the Enterprise Architect edition of Microsoft Visio for data modeling regularly, then there is a good chance that at some point you've wanted to export just the table names into Excel. You might want to do this to map logical ERD entities to physical data model tables, track project status by entity, or track overlap between database versions.

SharePoint Tutorial - Libraries

A library is a feature in SharePoint that stores files (documents). Think of a library as a folder on your file system. For example, a library can be created to store resumes in the human resources team site. A library is usually created for a specific type of file. Libraries can contain metadata to describe the particular file in more detail and to make it easier to find.

SharePoint Tutorial - Lists

A list is a feature in SharePoint that stores a lists of information. For example, a list can be created to store web links in the human resources team site. A list is usually created for a specific type of information. Lists can contain metadata to describe the particular information in more detail and to make it easier to find.

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008


I am having problems with a user control. I want my solution to have a separate project for holding my user controls.

The main project can get a reference to this user control project and can import this user control dll into my main project. 

Thanks in advance,

Dheeraj Mittal


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend