I have a listbox :
<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True"OnSelectedIndexChanged="ListBox1_SelectedIndexChanged">
<asp:ListItem Value="genyn">MAS Meeting</asp:ListItem>
<asp:ListItem Value="smartyn">Smart Meeting</asp:ListItem>
<asp:ListItem Value="genyn">Project Meeting</asp:ListItem>
</asp:ListBox>
In the code behind:
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
label1.Text= ListBox1.SelectedItem.Text;
}
when I select Project Meeting in the ListBox, label1 has the text "MAS Meeting". But i want it hav Project Meeting. Is it because I have same value for first and third listitem?
Can anyone help me? Thanks in advance