Bootstrap FreeKB - MVC - Allow HTML to be inserted and updated in a SQL database
MVC - Allow HTML to be inserted and updated in a SQL database

Updated:   |  MVC articles

The following will need to be added to the top of the Controller.

using System.Web.Mvc;

 

Then add [AllowHtml] before the public string.

[AllowHtml]
public string column_name { get; set; }

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter c150b9 in the box below so that we can be sure you are a human.