Posted by Shantha Kumar on 25th September 2009

How to get InternalName in ListEdit Page

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 [...]

Posted by Shantha Kumar on 31st March 2008

Uploading File from Local Machine to SharePoint ListItem as an attachment

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 file
if (fileUpload.PostedFile [...]