How do you put variable audio data?
-
Hello, everyone.
The question is: there is the Dana database with the table music that stores data (artist, title, filename,...). There's music.aspx. Now I've got to take all this out in a diaper. In music.aspx.cs, we make a sample of data:
var entity = new DataBaseEntity(); var audio = entity.audio;
Now, we need to get the contents of the audio on the music show.aspx.
There's got to be something like this (ASP.NET Entity Framework):
<% foreach(track in audio) //Как СЮДА поместить данные переменной audio { %> <div> <% audio.artist + " " + audio.title ... %> </div> <% } %>
Maybe it's not exactly the correct code, but that's not the point. )
-
Reeater.