I am used to writing in PHP, but I recently had a school project, on which I have to use ASP.NET with C#.
So, in php, everytime I had to insert or update something from a database (mysql), I used a php function called addslashes() which added slashes before quotes preventing any mysql errors (I used strip_tags to hide the html tags preventing users from messing up the page).
Now I wonder if there's some kind of a function that does that job perfectly like php does but in C# (ASP.NET).
Additional information: I use Access as a database.