@Url.Action ( <%= Url.Action (
/somecontroller/someaction/123 WebThe @Url.Action(action, controller, { area = "abc" }) does indeed return the URL, but I finally discovered an overload of Html.ActionLink that provided a better solution for my case: … ionity belgium
Web25 nov. 2024 · Html.ActionLink. Html.ActionLink creates a hyperlink on a view page and the user clicks it to navigate to a new URL. It does not link to a view directly, rather it links to a controller's action. Here are some samples of Html.ActionLink. If you want to navigate to the same controller's action method, use the one given below. WebActionLink (HtmlHelper, String, String, String) Returns an anchor element (a element) for the specified link text, action, and controller. C# public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName); Parameters htmlHelper … [email protected]("サンプル", "Sample", "Home") これは実行時に、 ionity blackrock