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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 12, 2015, 10:15 PM EDT
sreepathy s prabhu176 reputationPosted Apr 13, 2015, 1:52 AM EDT
{
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";
}
}
Durga VelusamyRank #4,868 · 321 reputationPosted Apr 12, 2015, 10:03 PM EDT
is it you want to display the item have selected or just image
sreepathy s prabhu176 reputationPosted Apr 12, 2015, 10:13 PM EDT
Guest User38 reputationPosted Apr 12, 2015, 10:47 PM EDT