я попробовал следующее в VB.net, оно работало нормально
страница aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
</div>
<asp:ListBox ID="ListBox1" runat="server">
<asp:ListItem>zero</asp:ListItem>
<asp:ListItem>first</asp:ListItem>
<asp:ListItem>second</asp:ListItem>
</asp:ListBox>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
код позади
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each item In ListBox1.Items
If item.ToString = TextBox1.Text Then
Response.Write("matching " + item.ToString)
End If
Next
End Sub
Конечный класс