I need to run a Javascript code within my ASP.NET project. In my ASP.NET project I have an array of information and i need to send it to javaScript to get handle information. Does anyone know how to solve this problem?
My code is this:
Asp.net ARRAY´s:
foreach (string music in distinctMusic)
{
musicList[i] = music;
i++;
}
foreach (int musicDuration in distinctMusicDuration)
{
musicDurationList[k] = musicDuration;
k++;
}
JavaScript function:
function playNext(listMusic, musicDuration) {
alert(listMusic[1]); //Test ...
}
That does not work. Help?