Friday, January 23, 2015

Invalid anonymous type member declarator MVC

I got this error message when i use  @data-group in ActionLink.

@Html.ActionLink(cardCategory.Name, "Index", new { controller = "Home" }, new { @class = "btn btn-default btn-lg btn-filter", @data-group = "C" })

Use an underscore _ - the Razor engine is smart enough to translate that to a data- attribute.

TinyMCE Insert/Edit link not editable

 To fix this add  e.stopImmediatePropagation()  as below. $(document).on('focusin', function (e) {             if ($(e.target).close...