• Posts Tagged ‘List’

    Updating SharePoint ListItems

    by  • March 6, 2011 • SharePoint-2010 • 2 Comments

    There are two methods available to update the List Items on SPListItem Object. SPListItem.Update(); SPListItem.SystemUpdate(); SPListItem.Update() used to update all the values in SharePoint List Item including pre-defined hidden fields. If we modified the item, that will affects the Modified Date, Modified By, Version information fields. SPList olist = oweb.Lists.TryGetList(“ListName”); SPListItem olistitem = olist.Items[1]; olistitem.Title [...]

    Read more →

    SharePoint Daily Alerts – 3

    by  • January 3, 2011 • SharePoint Daily Alerts • 0 Comments

    If the user want to choose cascade or Restrict option for the lookup field, that user must have the ManageLists permission for the Lookup List. To View the list of Permissions, check the SPBasePermissions enumeration. Blog this! Bookmark on Delicious Digg this post Recommend on Facebook Share on Linkedin share via Reddit Share with Stumblers [...]

    Read more →

    How to get InternalName in ListEdit Page

    by  • September 25, 2009 • SharePoint • 2 Comments

    In SharePoint the column or field has two names. One is DisplayName, used to view the field name publically in all pages and another is InternalName used internally to refer the Field. This Internal name will be used in CAML Queries, during retreiving inserting and updating the list item.We can’t see this Internal name in any pages [...]

    Read more →

    Uploading File from Local Machine to SharePoint ListItem as an attachment

    by  • March 31, 2008 • SharePoint • 4 Comments

    To attach the file from Local Machine to SharePoint ListItem as an attachment, Import the System.IO namespace to use the Stream Class to read the file contents. Use System.Web.UI.WebControls.FileUpload control is named as fileUpload in code. Sample code for uploading the file from Local Machine to ListItem attachments as follows, //Check the FileUpload control has the [...]

    Read more →