How Do I Pass an Array of Values via Anchor Tag Helper?
问题 I'm using Asp.Net Core 2.1 Pages public async Task OnGetAsync([FromQuery(Name = "status")] string[] myValues) { } I'm trying to pass in an array of values from an anchor tag helper , but all I receive in myValues is one item. If I manually type out the query string to mirror MyRoute?myValues=A&myValues=B , it works as expected. I've tried the following with no success. <a asp-page="/MyPage" asp-route-status="A" asp-route-status="B">Click</a> <a asp-page="/MyPage" asp-route-status="new [] { A,