.Net Framework DataTable.Select(String) method when the filter expression contains ' or "

Posted by iulianchira on Stack Overflow See other posts from Stack Overflow or by iulianchira
Published on 2010-02-25T12:12:03Z Indexed on 2010/05/28 10:31 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

In a .Net web application I use the public DataRow[] Select(string filterExpression) method in many places. Due to a last minute change characters such as ' and " are now valid input. What options do I have, is there a way to change the filterExpression in an adequate way and still preserve the Select functionality on the datatable, can I switch to LINQ?

© Stack Overflow or respective owner

Related posts about sql

Related posts about LINQ