what can I use to replace the string if its in the following format
I' have a "car" that runs very well
So basically i have a search function
and if they just type '
it wasnt finding it so i did
mySearchWord.Replace("'", "''")
and then it found it but now what if there is an '
and "
in the same sentence or word, how can i check for both in mySearchWord ?
because for both cases i would do something like
mySearchWord.Replace("'", "''")
mySearchWord.Replace("\"", "\"") //have no idea about this one
or something like that, is there a way to do it at once?
I think someone below is pointing me in the right direction, i just need to be able to pass apostrophes or quotation marks to my search but it was throwing an error maube because when passed, just as in sql, you would need to escape a quotation or apostrophe