codice:
Function MyFunction() as Integer
'codice che ricava l'indice che ti serve
End Function



<ASP:DropDownList ID="MyDDL"
...
SelectedIndex="<%#MyFunction%>"
/>