Exemplo n.º 1
0
 //refreshes data list of song
 protected void RefreshSong(int audio_id)
 {
     if (Session[audio_id.ToString()] == null) //adds listen if user didn't listen
     {
         AudioFiles.AddListen(audio_id);
         Session[audio_id.ToString()] = true;
     }
     DataList1.DataSource = AudioFiles.GetFileById(audio_id);
     DataList1.DataBind();
 }