Custom model binder for a property

override BindProperty and if the property is “PropertyB” bind the property with my custom binder That’s a good solution, though instead of checking “is PropertyB” you better check for your own custom attributes that define property-level binders, like [PropertyBinder(typeof(PropertyBBinder))] public IList<int> PropertyB {get; set;} You can see an example of BindProperty override here.

ASP.NET MVC A potentially dangerous Request.Form value was detected from the client when using a custom modelbinder

You have a few options. On the model add this attribute to each property that you need to allow HTML – best choice using System.Web.Mvc; [AllowHtml] public string SomeProperty { get; set; } On the controller action add this attribute to allow all HTML [ValidateInput(false)] public ActionResult SomeAction(MyViewModel myViewModel) Brute force in web.config – definitely … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)