Controller.cs
ViewData["Applications"] = await _applicationClient.GetAll();
view.cshtml
@(Html.Kendo().Grid<ResourceViewModel>
()
.Columns(columns =>
{columns.ForeignKey(r => r.ApplicationId, (System.Collections.IEnumerable)ViewData["Applications"], "Id", "Assembly").Title("Application").Width(100);})
What is the antixss code for ForeignKey column?
Similar problem solved with HttpUtility.HtmlEncode(..) when saving to database.
HttpUtility.HtmlEncode(application);