Torna al Thread

Protected Sub btnCerca_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCerca.Click Dim nome As String = txtCerca.Text Dim sql As String = "SELECT * FROM [elenco_utenti] WHERE cognome LIKE '" & nome & "%'" SqlDataSource1.SelectCommand = sql SqlDataSource1.Select(DataSourceSelectArguments.Empty) GridView1.DataBind() End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5