I am Trying to use array to assign movie titles to list box. They select the movie in the drop down list then it shows up in the list box (this does not work) using C# and aspx
protected void addToCartImageButton_Click(object sender, ImageClickEventArgs e)
{
string [] movieNameArray = new string [10];
movieNameArray[0] = "The Advengers";
movieNameArray[1] = "Titanic";
movieNameArray[2] = "Frozen";
movieNameArray[3] = "Boy";
movieNameArray[4] = "Grown Ups";
movieNameArray[5] = "Coach Carter";
movieNameArray[6] = "More than a game";
movieNameArray[7] = "Harry Potter";
movieNameArray[8] = "Avatar";
movieNameArray[9] = "Titanic";
cartListBox.Items.Add(movieNameArray.ToString());
DropDownList3.Items.Add(movieNameArray.ToString());
}