Hi,
I've two page aspx: first page is search.aspx, second page is reasult.aspx
into page search.aspx i write this code:
and then pass the values to the second page result.aspx....Into first page there's a ajaxloadingpanel that appears when I send the data, but the loading is still.
Perhaps because the page has result.aspx in load_page loading data from the database? And so it stops loading.
this code in second page:
I've two page aspx: first page is search.aspx, second page is reasult.aspx
into page search.aspx i write this code:
Response.Redirect(
"reasult.aspx?_str1=" & Txtsearch1.Text & "&_str2=" & Txtsearch2.Text)
and then pass the values to the second page result.aspx....Into first page there's a ajaxloadingpanel that appears when I send the data, but the loading is still.
Perhaps because the page has result.aspx in load_page loading data from the database? And so it stops loading.
this code in second page:
Imports SystemImports System.DataImports System.WebImports System.Data.SqlClientImports Telerik.Web.UIImports System.IO Private Loadsearch As New GestoreUtente Dim list As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2) RadListView1.DataSource = list RadListView1.DataBind()Public Class GestoreUtente Public Function Search(ByVal _Str1 As String, ByVal _Str2 As String) As List(Of PropertyUtente) Dim lista As New List(Of PropertyUtente) Try Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString") Dim strConnString As String = conString.ConnectionString Using db As New SqlConnection(strConnString) db.Open() Using sqlcmd As New SqlCommand("Sp_searching_like", db) sqlcmd.CommandType = CommandType.StoredProcedure sqlcmd.Parameters.AddWithValue("@Search", SqlDbType.VarChar).Value = _Str1 sqlcmd.Parameters.AddWithValue("@Searchluogo", SqlDbType.VarChar).Value = _Str2 Using sqldr As SqlDataReader = sqlcmd.ExecuteReader While sqldr.Read lista.Add(New PropertyUtente With {.idutente = sqldr.GetSqlInt32(0).Value, _ .utente = sqldr.GetSqlString(1).Value, _ .Desccategoria = sqldr.GetSqlString(2).Value, _ .Desccomune = sqldr.GetSqlString(3).Value, _ .Telefono = sqldr.GetSqlString(4).Value, _ .Cellulare = sqldr.GetSqlString(5).Value, _ .Imageprofile = sqldr.GetSqlString(6).Value, _ .Email = sqldr.GetSqlString(7).Value}) End While End Using End Using End Using Catch ex As SqlException Exit Try Catch ex As Exception Exit Try End Try Return lista End FunctionEnd Class