I have the following c# code embedded in a literal <% %>
of a c# asp.net page
string commandString = "SELECT tblData.Content " +
"FROM tblData " +
"WHERE (tblData.ref = N\'%"+myCurrentREF+"%\')";
This is breaking my code since it apparently cannot use the \'
escape character. Why is it so? other escape characters like \"
are working so why isn't \'
working?