コード例 #1
0
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     foreach (MediaControl mc in MediaControl.GetAlbumAsMediaControls(VideoMediaTag))
     {
         DynamicMediaDiv.Controls.Add(mc);
     }
 }
コード例 #2
0
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     if (myTagUser == null)
     {
         foreach (MediaControl mediaControl in MediaControl.GetAlbumAsMediaControls(myTag))
         {
             DynamicMediaDiv.Controls.Add(mediaControl);
         }
     }
     else
     {
         foreach (MediaControl mediaControl in MediaControl.GetMediaUserPairAsMediaControls(myTagUser.Id))
         {
             DynamicMediaDiv.Controls.Add(mediaControl);
         }
     }
 }