c# - Does @Html.Textarea sanitize input? -


i have web form allows enter user input @html.textarea. if there form validation error, input shown in text area. if form submits successfully, user's input sent database.

i've tried various things can think of sql injection, , appears microsoft's built in functionality catching it. should doing sanitize input?

i'm using latest mvc razor framework. using strong types. i've read html.encode, think html.textarea method doing this? have not implemented it.

the razor part not implement of checking (since has no way of knowing consider valid input). database layer using in mvc deals injection attacks.


Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -