Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Load drop down values from list(of string)
posted

I am poplulating  a webdropdown with a list(of string) :

    ddWeeks.DataSource = weeklist

Later on I need to get the selected index by finditemby value:

   Dim index = ddWeeks.Items.FindItemByValue("Week of " & BeginWeek).Index

      ddWeeks.SelectedItemIndex = index

However, the code bugs out because the item value was never set, How do I set the value from the list(of string)??

Parents
No Data
Reply Children