cater for sql apostrophe select condition in C#
Filter.Value = "LastName LIKE '" + tbLastNameFilter.Text.Trim().Replace("'", "''") + "%'";
Achievement provides the only real pleasure in life
Filter.Value = "LastName LIKE '" + tbLastNameFilter.Text.Trim().Replace("'", "''") + "%'";
Posted by SF at 3:53 pm
No comments:
Post a Comment