I am trying to call action link from script but it is not working,
but when I am using window.open
it is working but I need other properties because of my CSS view, if I can call Html.ActionLink
I can open it in tabs at the same page with my template.
Here is code:
function OnRowDblClick(s, e) {
alert(e.visibleIndex);
GridViewCitiesList.GetRowValues(e.visibleIndex, "CityGuid", OnGetRowValues);
}
function OnGetRowValues(data) {
var url = Html.ActionLink("Edit", "CityAction", "City", new { CRUDType: CRUDTypes.Update, ModelGuid: data }, new { class: "btn btn-success", target: "_blank", title: "City Detail" });
window.location.href = url;
}
Error says:
Uncaught ReferenceError: Html is not defined