A potentially dangerous Request.Form value was detected from the
though i am write [allowhtml] in my model class it will not work
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vinay SinghRank #604 · 4K reputationPosted Aug 8, 2016, 1:10 AM EDT
You have a few options.
On the model add this attribute to each property that you need to allow HTML - best choice
On the controller action add this attribute to allow all HTML
Midhun TpRank #388 · 6.5K reputationPosted Aug 8, 2016, 12:48 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 8, 2016, 1:14 AM EDT