The listbox is used to list items available in a store. When the user clicks on an item in the listbox, its
image is displayed in the image control.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Apr 13, 2015, 2:15 AM
sreepathy s prabhuPosted Apr 13, 2015, 5:52 AM
{
if (lstListbox.SelectedIndex == 0)
{
imgImageBox.ImageUrl = "~/Images/Apple.jpg";
}
if (lstListbox.SelectedIndex == 1)
{
imgImageBox.ImageUrl = "~/Images/orange.jpg";
}
if (lstListbox.SelectedIndex == 2)
{
imgImageBox.ImageUrl = "Images/mango.jpg";
}
}
Guest UserPosted Apr 13, 2015, 2:47 AM
sreepathy s prabhuPosted Apr 13, 2015, 2:13 AM
Durga VelusamyPosted Apr 13, 2015, 2:03 AM
is it you want to display the item have selected or just image