J'ai ce code om my View. Et c'est un bon travail.Url.Action to Html.Raw
... onclick="location.href = '@Url.Action("Plan", "Care", new {Area = "HomeC"})'"><img src="~/Content/images/dash/Care.PNG"
Comment faire le même code avec Html.Raw? J'ai essayé
grid.Column(columnName: "Name", header: "", format: @<text>@(item.ListStatus == 1 ? Html.Raw("<button class='btn btn-default btn-plan' title='Care' onclick='location.href = " + "'" + Url.Action("Plan", "Care", new {Area = "HomeC"}) + "''>" +
"<img src='/Content/images/dash/Care.PNG' class='img-plan' data-interlocutorid=" + item.UserId + " " + "data-interlocutorname=" + item.Name + " " + ">" +
"</button>") : Html.Raw(""))
</text>),
Avec l'image tout bon, mais le lien ne fonctionne pas.
Qu'essayez-vous de faire? – Shyju
Je modifie mon code. Regardez s'il vous plaît. –