Search Engine
I am working on a search engine for an Online Advising application. The search is set up to either bring up a course code or course name depending on what the user enters in the text box. The problem is that if a user only enters one or two letters, the search may bring up data where the string they entered appears in the middle of a word instead of the beginning.
dtvwCourses.RowFilter = "course_code LIKE *" + search_str + "* OR course_name LIKE *" + search_str + "*";
can someone take a look at the code and see if they see any errors or possible improvements?
Thanks in advance
I am working on a search engine for an Online Advising application. The search is set up to either bring up a course code or course name depending on what the user enters in the text box. The problem is that if a user only enters one or two letters, the search may bring up data where the string they entered appears in the middle of a word instead of the beginning.
dtvwCourses.RowFilter = "course_code LIKE *" + search_str + "* OR course_name LIKE *" + search_str + "*";
can someone take a look at the code and see if they see any errors or possible improvements?
Thanks in advance