Hello.
I have created a data-bounded drop down list (combo box) on an ASP.NET page.
The displayed text of each list item in the comb box comes from a field from a table. The value of the list item relates to the ID of the related field. The IDs should be near sequential but not necessarily.
when I make a selection on a page I can catch the selected VALUE. I would need to re-populate another instance of the same combo-box on the new page and I would like to preserve the already selected item from the previous page.
How do I do this? It seems that if the ID\value happens to be 20 and there are only 3 items it will reference the INDEX of the combo-box and not the value. I need to match them up based on value.
Any tips?
Thank you in advance.
I have created a data-bounded drop down list (combo box) on an ASP.NET page.
The displayed text of each list item in the comb box comes from a field from a table. The value of the list item relates to the ID of the related field. The IDs should be near sequential but not necessarily.
when I make a selection on a page I can catch the selected VALUE. I would need to re-populate another instance of the same combo-box on the new page and I would like to preserve the already selected item from the previous page.
How do I do this? It seems that if the ID\value happens to be 20 and there are only 3 items it will reference the INDEX of the combo-box and not the value. I need to match them up based on value.
Any tips?
Thank you in advance.