vb.net - textbox matching pattern from database table -


i have name textbox , want find names included in typed text in database table patient details name column. know how use operator if know letters want search start/end etc. time want textbox. think issue quotations; tried play around didn't work!

from x in patientdetails ( x.patient_name  '%" textbox1.text "%' ) 

for example: if patient name in database is: john matt

and user typed matt, above record john matt should returned.

p.s tried looking in google discuss characters not entered text box thank all.

something

c#

var query = (from x in patientdetails              x.patient_name.contains(textbox1.text)              select x).tolist(); 

vb.net - converted using codeconverter

dim query = (from x in patientdetails               x.patient_name.contains(textbox1.text)x).tolist() 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -