You can refer the official doc,and pay attention to RedirectToPage(String, String, Object, String)
,You can add Anchor tag to string fragment
.Here is a demo:
handler:
public IActionResult OnPost()
{
return RedirectToPage("Detail","",new{id = 1}, "thisplaceinpage");
}
result:
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
YiyiYou