Sign in
Google apps
Main menu
Post a Comment On:
Blogpad
"Single quotes Datatable.Select()"
No comments yet. -
1 – 0 of 0
Replace single quote for two single quotes, and it will work
string filter = @"DestinationName = '" + destinationName.Replace("'", "''") + "'";
DataRow[] drs = _ds.Tables[0].Select(filter);
foreach (DataRow dr in drs)
{
...
}
posted by fc at
9:21 AM
on Jul 16, 2008
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
This blog does not allow anonymous comments.
Google Account
You will be asked to sign in after submitting your comment.
Please prove you're not a robot
"Single quotes Datatable.Select()"
No comments yet. -