Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Single quote problem in Datatable.Select
Devendra Kumar
Aug 17 2017 12:25 PM
185
Reply
Hello
I got stuck while searching on a DataTable
DataTable contains data like John's
When I pass
var des = "John's";
var rows = datatable.Select($"Description = '{des}');
This throw an exception
Missing operand after n
I also tried parsing with slash but it still throws the same exception
Any solution?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
SQl Security (how to ensure that my sqldatabase is secured)
C#, datagridview and iTextsharp