A complete code behind ObjectDataSource in C# with default sorting, paging and ControlState saving.