I have a ASP.NET web app written in C#. I have a problem when a user will enter an apostrophe (') it has problems writing to the db because SQL uses ' in it's statements. How do I get around this problem? Is there a way to search a string and replace the ' with the ascii code (character 39)???? Any help is appreciated. Thanks.