Using LINQ in Sharepoint Object Model

Read more about Using LINQ in Sharepoint Object Model article

I have been playing around with LINQ in Sharepoint object model and I have to say I’m quite impressed. It does shorten the amount of code we write and works just as great or better.

How to select distinct from SPQuery CAML

Read more about How to select distinct from SPQuery CAML article

A handy way to select distinct records from SPListItemCollection set queried from CAML query.

How to migrate list structure and content in Sharepoint

Read more about How to migrate list structure and content in Sharepoint article

Sharepoint has a feature that allows us to migrate list data structure and content to a different site so that we do not have to re-create them. This is done through list settings -> save list as template. List template is a powerful function which can save the data structure of a list as well as its content.

How Sharepoint stores datetime field in UTC

Read more about How Sharepoint stores datetime field in UTC article

Lately we found a very interesting fact of Sharepoint, which I think is worth writing a post about. Although it is very rare that someone will read directly into Sharepoint database to retrieve information, but for some hardcore users, especially with my last post regarding how Sharepoint stores data in backend database, one can easily read into Sharepoint Prod_Content database and do CRUD transactions.

Accessing parent web list items carefully

Read more about Accessing parent web list items carefully article

I spent quite some time today fixing this problem of accessing a list item in parent web. What I had to do was to access a list item in a parent web, but it kept crashing as if there's no permission given to access it.

Useful common methods for Sharepoint Development

Read more about Useful common methods for Sharepoint Development article

Time and time again, I use these methods in coding for Sharepoint. These include methods for querying a list, bind a Dropdown List to a list, and bind a Dropdown List to a multiple choice field.

Reading Spreadsheet into a DataTable in C#

Read more about Reading Spreadsheet into a DataTable in C# article

This is an extremely useful function, which allows you to read an Excel spreadsheet and convert its data into a DataTable in C#. With data in a DataTable, we can perform lots of things to it.

List Attachments Open as Read Only

I had the problem of saving files which I uploaded programatically to Sharepoint list item. When I tried to save them, there's pop up dialog saying the file is in read only mode, even I had all the required permissions.

Sys.WebForms.PageRequestManagerParserErrorException

Read more about Sys.WebForms.PageRequestManagerParserErrorException article

I had the problem of page not able to redirect when in an ajax postback. It happens to be the fact that I disabled a line in web.config:. This line should be added in HttpModules, so that redirection will work in Ajax postback. This class manages HttpModules for Ajax functionalities in ASP.NET.

How to send email via Sharepoint

Read more about How to send email via Sharepoint article

A useful function to send email in Sharepoint, programatically.