protected void ddlArtistSongs1_SelectedIndexChanged(object sender, EventArgs e) { SongProperty sp1 = new SongProperty(); //am sp1.GetSongPropertySongIDTypeID( sng.SongID, SongProperty.SPropType.AM.ToString()); txtAmazonLink.Text = sp1.PropertyContent; sp1 = new SongProperty(); //it sp1.GetSongPropertySongIDTypeID( sng.SongID, SongProperty.SPropType.IT.ToString()); txtiTunesLink.Text = sp1.PropertyContent; }
public static string GetPropertyTypeLink(int vidID) { Songs sngs = new Songs(); sngs.GetSongsForVideo(vidID); StringBuilder sb = new StringBuilder(); SongProperty sp = new SongProperty(); foreach (Song sng in sngs) { sp = new SongProperty(); sp.GetSongPropertySongIDTypeID(sng.SongID, SongProperty.SPropType.IT.ToString()); if (!string.IsNullOrEmpty(sp.PropertyContent)) { sb.Append(@"<a target=""_blank"" class=""info"" href=""" + sp.PropertyContent + @""">"); sb.Append(sng.Name); sb.Append(@"</a>"); } } return HttpUtility.HtmlEncode(sb.ToString().Trim()); }