MonoX 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.

Get user photos  (Mono Support )

Viewed 9564 time(s), 2 post(s) 04.01.2012 18:37:09by Maxim
Maxim

Maxim

04.01.2012 18:37:09
Hi! How can I get a concrete user galleries(by userId)? It's like "My Albums" control but show other users albums.
Dieser Inhalt wurde noch nicht bewertet. 
319 Reputation 30 Total posts
khorvat

khorvat

05.01.2012 20:12:56
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts