Escaping single quotes and double quotes in a String
I have a textbox in wich users can put there input.
I want this String to be escaped of strange characters, single quotes and double quotes.
Since I don't want my SQL query to crash, with bad user input.
Is there a standard function for this in .NET ? In PHP with mysql you have the
mysql_escape_string() method is there a similar method in .Net ?
Keyboard
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Tanvir HudaRank #4,089 · 366 reputationPosted Jan 12, 2004, 4:51 AM EST
aidin6 reputationPosted Jan 12, 2004, 6:36 AM EST