✅ ASP.NET page help (again, ik)
Recently, I asked about what I was doing wrong making
/servers/{id}
, and I figured that out (had to make an Index.cshtml to make it work like I wanted), now how do I put a page under the path /servers/{id}/members
?6 Replies
It seems a bit weird to me that creating a Index.cshtml was your solution in the other answer. But when {id} works for a page than {id}/members should work for the other page.
@page "{id}/members"
in Pages/Servers/Members.cshtml
?I think so. When @page „{id}“ works for /servers/{id} them this should also work.
Unfortunately, that makes the path
/servers/members/{id}/members
Guess you'll have to give it an absolute path, then
@page "/servers/{id}/members"
Thanks