Monday, 31 October 2016

Fix Error - A potentially dangerous Request.Form value was detected from the client ().


Watch this example on YouTube


Fix error
A potentially dangerous Request.Form value was detected from the client (CustomerFirstName="<B>").

to fix it add the following in  Controller

        [HttpPost]
        [ValidateAntiForgeryToken]
        [ValidateInput(false)]
        public ActionResult Create(Customers2 customers2)
        { 

No comments:

Post a Comment