[Originally posted by arocha] I hava a drop down list that is been populated by an two dimension array. The problem is that the drop down list make a post back at the page and after the post the selected item returns to position 0. Can anyone help me with this problem? The post back has no problem with a listitem insert manually, but through a array doesn´t work. This is a example: x[0,0]="123"; x[0,1]="KKK"; x[1,0]="456"; x[1,1]="TTT"; x[2,0]="789"; x[2,1]="ZZZ"; ddlConta.Items.Add(new ListItem(x[0,0],x[0,1])); ddlConta.Items.Add(new ListItem(x[1,0],x[1,1])); ddlConta.Items.Add(new ListItem(x[2,0],x[2,1]));
|