aidin

aidin

  • NA
  • 4
  • 0

Escaping single quotes and double quotes in a String

Jan 12 2004 6:59 AM
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

Answers (2)