Imports System.Linq Partial Class _Default Inherits System.Web.UI.Page Protected Sub btnsubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsubmit.Click Dim pContext = New AWData() Dim prod = (From p In pContext.Products Where p.Name.Contains("A") Select p) For Each product In prod Response.Write(product.Name & "<br/>") Next End Sub end class The Like, StartsWith and Contains are can be used as alternative function in searching a specific records in a database in Linq to Sql.