<div id="tree3">
@foreach (var item1 in Model.Departments.Where(s => s.Id == 3)) //Teknik Destek
{
<ul>
<li data="isFolder: true, icon: 'folder_docs.gif'">@Ajax.ActionLink(item1.DepartmentName, "Index", new { item1.Id }, new AjaxOptions() { HttpMethod = "Get" });
<ul>
@foreach (var item in Model.Users.Where(s => s.DepartmentId == 3))
{
<li>
@Ajax.ActionLink(item.UserName, "Index", new { item.Id }, new AjaxOptions() { HttpMethod = "Get" });
</li>
}
</ul>
</ul>
}
</div>
我怎样才能获得李之间的选择值请帮助我,我正在尝试3天我不能在李里面选择值
答案 0 :(得分:0)
@Ajax.ActionLink("EditUser", "Index", "Index", new { RID = item.Id }, null, new AjaxOptions
{
HttpMethod = "Get",
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "dialog-add-user",
})
或尝试这样
@Html.ActionLink("EditUser", "Index", new { Id = item.Id })