Mono support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mono Support Get user photos 

Viewed 2032 time(s), 2 post(s). 1/4/2012 6:37:09 PMby Maxim
Maxim
1

Maxim 1/4/2012 6:37:09 PM

Hi! How can I get a concrete user galleries(by userId)? It's like "My Albums" control but show other users albums.
This content has not been rated yet. 
319 Reputation 30 Total posts
khorvat
2

khorvat 1/5/2012 8:12:56 PM

Hi,

you can access the gallery list by using the following code:
AlbumRepository repository = AlbumRepository.GetInstance();
EntityCollection<SnAlbumEntity> albums = null;
 
int recordCount = 0;
 
    Guid? userId = this.UserId;
    albums = repository.GetAlbums(userId, this.GroupId, this.PrivacyLevelIds, true, pager.CurrentPageIndex + 1, pager.PageSize, out recordCount);
  
 
 
    PagerUtility.BindPager(pager, DataBind, lvItems, albums, recordCount);

Regards
This content has not been rated yet. 
11576 Reputation 1649 Total posts