Great way to earn money!

Zone1

Tuesday, February 28, 2012

Some SHAREPOINT Questions Part 2



What is the difference between System.Web.UI.WebControls.WebParts.WebPart and Microsoft.SharePoint.WebPartPages.WebPart?

Microsoft.SharePoint.WebPartPages.WebPart is provided in MOSS 2007 to provide backwards compatability with MOSS 2003 webparts. In MOSS 2007, it is recommended to use System.Web.UI.WebControls.WebParts.WebPart instead. 




 When running with SPSecurity.RunWithElevatedPrivileges (web context) what credentials are being used?

 The App Pool Identity for the web application running SharePoint.




Difference between SharePoint List and document library

  • In to a document library we can upload document which get stored in Content database.

  • A list on the other hand a just piece of data, just like SQL table although it is possible  to store binary content in to list as well as using attachment.

  •  With a document library we can use SPFileCollection.add(string, stream) – Document Library Accept a stream, means the content can be in memory, or disk or even a TCP/IP socket. But with List we Can only use SPAttachmentCollection.Add(string, byte) only accepting a byte , means the attachment must fit entirely in one continuous block memory. If this is something you do with large file , your server memory may become fragmente

  • We Can Publish a Infopath Form Template in document Library, and this problem is rise when we submit the Form in different place then where you published the form. 

  • We can’t create Folder in List but can in Doc. Library 

  •  Document library has the Check in Check out functionality but not in List. 

  • Document library support the Major and Minor Version of files and Folders. But in List only support the Major version. So that two people cannot change the same content at concurrently. 

  • Some type of list have different functions like for instance people being only able to read their own posts, but these are not available in every type of list and are not available at all with document libraries and other libraries. 

List have one special List Content type, same as list Library has also DocumentLibaray type content type.

 

 

 

When modifying a list item, what is the "main" difference between using SPListItem.Update() and SPListItem.SystemUpdate()

Using SystemUpdate() will not create a new version and will also retain timestamps.

 


No comments:

Post a Comment