control sql injection in mvc using -',,sql-injection'

control sql injection in mvc  using -',,sql-injection'

it's my first time to develope MVC , I want to make it secure

when I use Htmlencode it convert the string to the equivalent

the user can enter in the search for example ali' or ali-- and they exists in my database , how to control my search and login from SQL injection please

also any tutorial or best practice to prevent script injection

asked Sep 7, 2015 by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.