I want to populate a drop down list programmically and i'm using the syntax:
lstYSItemNumber.Items.Insert(intYSItemNumber, intYSItemNumber)
Is my understanding correct that the first parameter of the Insert operation the index in the dropdownlist collect and the second paramenter of the insert operation the text value of the dropdownlist? If so where does the value property fit in to the dropdown list? I just really want to insert a dropdownlist item with an index position of 0, value of 1, and text of 1. Could anyone supply me with the correct syntax? It would be greatly appreciated.
Thanks all! *** Any suggestions to my asp.net site would be great if your bored!
lstYSItemNumber.Items.Insert(intYSItemNumber, intYSItemNumber)
Is my understanding correct that the first parameter of the Insert operation the index in the dropdownlist collect and the second paramenter of the insert operation the text value of the dropdownlist? If so where does the value property fit in to the dropdown list? I just really want to insert a dropdownlist item with an index position of 0, value of 1, and text of 1. Could anyone supply me with the correct syntax? It would be greatly appreciated.
Thanks all! *** Any suggestions to my asp.net site would be great if your bored!