Users Pricing

forum

Home Forums How to call UrlHelper in Asp.net MVC? – MindStick

How to call UrlHelper in Asp.net MVC?

Anonymous User 2862 21 Nov 2014

I need to generate some URLs in a model in ASP.NET MVC. I'd like to call something like UrlHelper.Action() which uses the routes to generate the URL. I don't mind filling the usual blanks, like the hostname, scheme and so on.

Is there any method I can call for that? Is there a way to construct an UrlHelper?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md