Example #1
0
 /// <summary>
 /// Loads the downloads.
 /// </summary>
 private void LoadDownloads()
 {
     Guid userGuid = new Guid(membershipUser.ProviderUserKey.ToString());
       DownloadCollection downloadCollection = new DownloadController().FetchPurchasedDownloadsByUserId(userGuid);
       if (downloadCollection.Count > 0) {
     dlFiles.DataSource = downloadCollection;
     dlFiles.ItemDataBound += new DataListItemEventHandler(dlFiles_ItemDataBound);
     dlFiles.DataBind();
       }
 }
 /// <summary>
 /// Loads the downloads.
 /// </summary>
 private void LoadDownloads()
 {
     DownloadCollection artifactCollection = new DownloadController().FetchAll();//FetchByProductId(productId);
       dgDownloads.DataSource = artifactCollection;
       dgDownloads.ItemDataBound += new DataGridItemEventHandler(dgDownloads_ItemDataBound);
       dgDownloads.Columns[0].HeaderText = LocalizationUtility.GetText("hdrEdit");
       dgDownloads.Columns[1].HeaderText = LocalizationUtility.GetText("hdrForPurchaseOnly");
       dgDownloads.Columns[2].HeaderText = LocalizationUtility.GetText("hdrTitle");
       dgDownloads.Columns[3].HeaderText = LocalizationUtility.GetText("hdrPath");
       dgDownloads.Columns[4].HeaderText = LocalizationUtility.GetText("hdrDelete");
       dgDownloads.DataBind();
 }