Tuesday, June 11, 2019

Allow Html

1. Allow html > by default this is disabled in mvc, if i want to pass html tag in string, we have to                 AllowHtml attribute

       [AllowHtml]
       Public string Detail { get; set; }

2. Allow Html On Action Method :- addding filter   [ValidateInput(false)]

      [HttpPost]
      [ValidateInput(false)]
      public ActionResult Create(Employee emp)
     {
           return View()
     }



No comments:

Post a Comment

Convert 1.25x speed spent hours convert into normal (1x) speed spent hours

If I run a video with 1.25x or 125% speed till 1 hour 26 minuts, then normal hours will be ?   1 hours 26 minuts convert into hours Total 60...