내 페이지에서 클라이언트의 이름, 성, 기록 등을 기반으로 ActionLinks를 만듭니다. 클라이언트 기록이 너무 길면 414 오류가 발생합니다. .HTTP 오류 414. ActionLink를 사용하여 요청 URL이 너무 깁니다.
public class SearchViewModel
{
public char[] Alphabet => "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ".ToCharArray();
public char ClientSearchString { get; set; }
public List<ClientViewModel> ClientsList { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Dob { get; set; }
public bool Edit { get; set; }
public string Address { get; set; }
public string Job { get; set; }
public string Mobile { get; set; }
public string LastVisit { get; set; }
public string Record { get; set; }
public string Pit { get; set; }
public string Er { get; set; }
public string Ter { get; set; }
public string History { get; set; }
public int Id { get; set; }
public bool OldRecord { get; set; }
}
@foreach (var client in clientList)
{
if (!string.IsNullOrEmpty(client.LastName))
{
<tbody id="rounded-corner">
<tr id="rounded-corner">
<td>
@Html.ActionLink(client.LastName, "DisplayClientDo", "DisplayClient", client, null)
</td>
<td>
@Html.DisplayFor(x => client.FirstName)
</td>
<td>
@Html.DisplayFor(x => client.Dob)
</td>
<td>
@Html.DisplayFor(x => client.Address)
</td>
<td>
@Html.DisplayFor(x => client.Telephone)
</td>
<td>
@Html.DisplayFor(x => client.LastVisit)
</td>
</tr>
</tbody>
}
public ActionResult DisplayClientDo(ClientViewModel model)
{
return View("DisplayClient", model);
}
페이지가 브라우저에서 실패합니다. URL은
그리고 this (때문에 역사) 약 18,000 자입니다 URL은 어떻게이 문제를 해결하기 위해 ActionLink
모든 단서의 결과인가?
성은 18000 자입니까? – Jonny
아니요, 클라이언트의 기록은 – dqm
입니다. 오류 메시지는 분명합니다. URL은 너무 길어서는 안됩니다. 그러한 URL을 생성하는 이유는 무엇입니까? –