() .Columns(columns => " /> () .Columns(columns => " /> () .Columns(columns => "/>

Antixss for Kendo Grid

171 Views Asked by At

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?

1

There are 1 best solutions below

0
Tuğçe Durak On BEST ANSWER

Similar problem solved with HttpUtility.HtmlEncode(..) when saving to database.

 HttpUtility.HtmlEncode(application);