Torna al Thread
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
_search.Value = Request.QueryString("_str1")
_search1.Value = Request.QueryString("_str2")
Carica_risultati(_search.Value, _search1.Value)
End If
End Sub
Private ObjUtente As New PropertyUtente
Private Loadsearch As New GestoreUtente
Private Sub Carica_risultati(ByVal _str1 As String, ByVal _str2 As String)
Dim lista As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
Label1.Text = "Risultati trovati: " & CInt(lista.Count)
RadListView1.DataSource = lista
----non uso il databind in quanto con il componente radlistview non serve perchè ha una proprietà diversa
End Sub