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 7791 time(s), 2 post(s) 1/4/2012 6:37:09 PMby 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


1/5/2012 8:12:56 PM

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);

This content has not been rated yet. 
15993 Reputation 2214 Total posts