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 )

9455 put(a) pogledan, 2 odgovor(a) 4.1.2012. 18:37:09Kreirao(la) Maxim
Maxim

Maxim

4.1.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.
Ovaj sadržaj još nije ocijenjen. 
319 Reputacija 30 Ukupno objava
khorvat

khorvat

5.1.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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava