Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How can I generate programmatically a LINK in RAZOR PAGES

$
0
0

I need a way to generate a link in asp.net RAZOR PAGES (so not MVC), similar to how it's done in mvc with ActionLink.

But I CANNOT use the tag helpers because I'm integrating things with a lib that required CODE and not markup. So I cannot use:

<a asp-page="./Details" asp-route-id="16">Edit</a>

So, I want something similar to

@(Html.ActionLink("Details", null,null, "http", "localhost:5110", null, new { id = 16 },null))

but then for RAZOR PAGES.

Thanks in advance !


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>