Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with Designer Serialization Pin
Robert Rohde1-May-06 3:32
Robert Rohde1-May-06 3:32 
GeneralRe: Problem with Designer Serialization Pin
kamran655362-May-06 3:43
kamran655362-May-06 3:43 
GeneralRe: Problem with Designer Serialization Pin
kamran655362-May-06 3:28
kamran655362-May-06 3:28 
GeneralRe: Problem with Designer Serialization Pin
kamran655362-May-06 3:33
kamran655362-May-06 3:33 
QuestionSelect Section of Image Pin
smarttom9930-Apr-06 15:37
smarttom9930-Apr-06 15:37 
AnswerRe: Select Section of Image Pin
Robert Rohde30-Apr-06 22:04
Robert Rohde30-Apr-06 22:04 
GeneralRe: Select Section of Image Pin
smarttom991-May-06 4:31
smarttom991-May-06 4:31 
QuestionList Box Pin
Sean8930-Apr-06 14:58
Sean8930-Apr-06 14:58 
I have a list box control on a web form that displays some data from a database. Each time a different item is selected in this list box I want to display some data in another list box, so I am handeling the SelectedIndexChanged event. My problem is that the event doesn't seem to be firing. This is what I am using:

protected void GroupList_SelectedIndexChanged(object sender, EventArgs e)
{
    //get what group has been selected
    int index = GroupList.SelectedIndex;

    // get all the items in the group
    DataRow[] rows = dSet.Tables["Mounts"].Select("Group_Number =" + GroupList.Items[index].Text);

    // Clear the second list of any items
    foreach (ListItem item in MountList.Items)
    {
        MountList.Items.Remove(item);
    }

    //Display the new list
    foreach (DataRow row in rows)
    {
        MountList.Items.Add(row[0].ToString());
    }
}


When I run this and select different items in the list box, nothing happens. Any ideas why?

Thanks for any responses Wink | ;)



AnswerRe: List Box Pin
Kuira30-Apr-06 16:56
Kuira30-Apr-06 16:56 
GeneralRe: List Box Pin
Sean891-May-06 9:10
Sean891-May-06 9:10 
GeneralRe: List Box Pin
Kuira1-May-06 13:33
Kuira1-May-06 13:33 
QuestionPersistent Button Pin
IceWater4230-Apr-06 13:35
IceWater4230-Apr-06 13:35 
AnswerRe: Persistent Button Pin
Stanciu Vlad30-Apr-06 21:54
Stanciu Vlad30-Apr-06 21:54 
GeneralRe: Persistent Button Pin
IceWater421-May-06 5:02
IceWater421-May-06 5:02 
GeneralRe: Persistent Button Pin
Stanciu Vlad1-May-06 7:13
Stanciu Vlad1-May-06 7:13 
GeneralRe: Persistent Button Pin
IceWater421-May-06 8:08
IceWater421-May-06 8:08 
GeneralRe: Persistent Button Pin
Stanciu Vlad1-May-06 8:25
Stanciu Vlad1-May-06 8:25 
GeneralRe: Persistent Button Pin
IceWater421-May-06 18:17
IceWater421-May-06 18:17 
Questionopen a word document Pin
deepak130-Apr-06 11:26
deepak130-Apr-06 11:26 
GeneralRe: open a word document Pin
Guffa30-Apr-06 11:57
Guffa30-Apr-06 11:57 
Questionhyperlink in MessageBox? Pin
manusse30-Apr-06 10:03
manusse30-Apr-06 10:03 
AnswerRe: hyperlink in MessageBox? Pin
Graham Nimbley30-Apr-06 10:40
Graham Nimbley30-Apr-06 10:40 
AnswerRe: hyperlink in MessageBox? Pin
Christian Graus30-Apr-06 11:17
protectorChristian Graus30-Apr-06 11:17 
QuestionI want to installed product.. but.... Pin
Real Coder30-Apr-06 8:00
Real Coder30-Apr-06 8:00 
GeneralRe: I want to installed product.. but.... Pin
Guffa30-Apr-06 9:37
Guffa30-Apr-06 9:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.