The dt.Select(string)
gives error missing operand
when apostrophe
symbol is in the string.
what is the way to solve this error? or How to handle this error?
String value = "Rubens' Home"; // value you want to sanitize and search
dt.Select(String.Format(
"Location = '{0}'", value.Replace("'", "''")));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With