<script language="vb" runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
[b]If Not IsPostBack Then[/b]
Dim myExistingValue As String = "item2"
If myExistingValue <> "" Then
If Not myDropDownList.Items.FindByValue(myExistingValue) Is Nothing Then
myDropDownList.Items.FindByValue(myExistingValue).Selected = True
End If
End If
[b]End If[/b]
End Sub
</script>
<html>
<body>
<form id="SelectAnItem" runat="server">
<asp:DropDownList
ID="MyDropDownList"
Runat="server"
[b]AutoPostBack="True">[/b]
<asp:ListItem Value="item1">item1</asp:ListItem>
<asp:ListItem Value="item2">item2</asp:ListItem>
<asp:ListItem Value="item3">item3</asp:ListItem>
</asp:DropDownList>
</form>
</body>
</html>