Assuming I want productCode variable below to be assigned the product code of a product named Cookie\'s
productCode
Cookie\'s
NOTE the \"\'\" in the the Prod
Prod
Try string filterValue="Cookie''s";
string filterValue="Cookie''s";
or
string filterValue="Cookie'+CHAR(39)+'s";