need to be able to search from the textbox if we leave blank space for one character
-
Hai all, i have one problem while searching.if i enter letters from the starting of the textbox then i am able to search. ....if i leave the starting of the textbox blank,and then enter letters then i can't able to search. Thanks in advance
Thanks Subbu.
-
Hai all, i have one problem while searching.if i enter letters from the starting of the textbox then i am able to search. ....if i leave the starting of the textbox blank,and then enter letters then i can't able to search. Thanks in advance
Thanks Subbu.
A space is a recognised character (Chr 32) so your application is searching for a string that starts with a SPACE. To counter the problem you need remove the leading and or trailing white space by using the String.Trim() method. It removes all the spaces that are not between other Characters. So
" this and that "
will be changed to"this and that"