嗨我在asp.net中迭代/读取listItem有问题...我想读这个listItem
.....
Dim l As ListItem ' it's already load
Protected Sub load_menu(ByVal address_url As String)
Dim slug As String = address_url.Substring(25)
Dim str As String
For Each str In l 'HERE THERE IS A PROBLEM
If String.Compare(str, slug) = 0 Then
txt_url.Text = str
Stop
End If
Next
End Sub
编译器告诉我L有问题,因为它不是集合......
您是否有想法如何迭代ListItem?
感谢您的时间:)