Dim db As New DatabaseDataContext()
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim cus = From p In db.Products
Where p.ProductName.Contains(txtSearch.Text)
Repeater1.DataSource = cus
Repeater1.DataBind()
End Sub
Tag : .NET, Web (ASP.NET), LINQ, VS 2010 (.NET 4.x)