Click here to Skip to main content
       

Sharepoint

 
AnswerRe: Accessing SharePoint information regarding specific documents Pinmemberihoecken13-Feb-13 21:57 
QuestionPopulating list columns in Sharepoint 2010 custom doc library PinmemberAptiva Dave10-Feb-13 7:15 
AnswerRe: Populating list columns in Sharepoint 2010 custom doc library PinmemberAnandSharmaUK20-Feb-13 0:27 
QuestionSoftware and Hardware requirements for document shareing PinmemberHemadriT7-Feb-13 7:24 
AnswerRe: Software and Hardware requirements for document shareing Pinmemberihoecken10-Feb-13 21:10 
Question[[Watch]] Workaholics Season 3 Episode 14 STream Free - Fourth and Inches Pinmembera uj6-Feb-13 16:30 
QuestionDeleting Items in a SPListItemCollection PinmemberAptiva Dave31-Jan-13 5:05 
AnswerRe: Deleting Items in a SPListItemCollection PinmemberJimmyRopes7-Feb-13 1:39 
I find it painful to read VB so I won't try to see where you are going wrong. Here is an alternate way of deleting all items from a list that may not be as efficient but for lists with a reasonable number of items the efficiency will not matter.
 
Go through the list items and get a list of GUIDs of the list items.
 
SPListItemCollection listItems = oWeb.Lists["List Name"].Items;
List<GUID> listGUID = new List<GUID>();
foreach (SPListItem Item in listItems)
{
  listGUID.Add(Item.UniqueId);
}
 
Translate that to VB.
 
Then go through the list of GUIDs and delete each one. Update the list after you are finished and the items will be gone.

The report of my death was an exaggeration - Mark Twain

Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes


QuestionGetting an error when trying to upload a document PinmemberJimmyRopes30-Jan-13 2:35 
AnswerRe: Getting an error when trying to upload a document Pinmemberihoecken30-Jan-13 2:50 
GeneralRe: Getting an error when trying to upload a document PinmemberJimmyRopes30-Jan-13 4:03 
AnswerRe: Getting an error when trying to upload a document Pinmemberihoecken30-Jan-13 4:55 
AnswerRe: Getting an error when trying to upload a document Pinmemberihoecken30-Jan-13 2:57 
GeneralRe: Getting an error when trying to upload a document PinmemberJimmyRopes30-Jan-13 4:05 
QuestionRequest for Sharepoint tutorial links Pinmemberobalesu28-Jan-13 18:18 
AnswerRe: Request for Sharepoint tutorial links Pinmemberihoecken28-Jan-13 21:13 
QuestionCan CAML query handle multiple lists? PinmemberClark Kent12328-Jan-13 5:35 
AnswerRe: Can CAML query handle multiple lists? Pinmemberihoecken28-Jan-13 21:17 
GeneralRe: Can CAML query handle multiple lists? PinmemberClark Kent12329-Jan-13 1:34 
QuestionThrowing an exception when trying to attach a document to a list item PinmemberJimmyRopes25-Jan-13 2:34 
AnswerRe: Throwing an exception when trying to attach a document to a list item PinmemberAptiva Dave31-Jan-13 5:07 
GeneralRe: Throwing an exception when trying to attach a document to a list item PinmemberJimmyRopes31-Jan-13 13:30 
GeneralRe: Throwing an exception when trying to attach a document to a list item PinmemberJimmyRopes7-Feb-13 2:31 
QuestionHo to Enable Titlle Column in Document Library using power shell in sharepoint 2010 Pinmemberps4124-Jan-13 18:21 
AnswerRe: Ho to Enable Titlle Column in Document Library using power shell in sharepoint 2010 Pinmemberihoecken24-Jan-13 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid