In MVC ,Html Kendo Grid is not passing “&” to the

2019-08-27 17:24发布

Kendo grid datasource is not passing values "&" from view to controller in MVC

For instance from the below code if testIdVal value is "Interface Class & Function" . Only "Interface Class" are being passed to the controller .

.DataSource(Function(d) d.Ajax() _
                                    .Read(Function(read) read.Action("GetResourcesForRolesForRootDomain", "Inquiry", New With {.testId= "#=testIdVal#"}).Type(HttpVerbs.Post).Data("additionalData"))) _

1条回答
Luminary・发光体
2楼-- · 2019-08-27 18:08

Two ideas on that one: Try to add encodeURIComponent around testIdVal: "#=encodeURIComponent(testIdVal)#" or add testIdVal in additinaldata. By the way, there is a typo in additinaldata. ;)

查看更多
登录 后发表回答