How to generate just the URL of the Controller method in ASP.NET MVC
Posted
by AngryHacker
on Stack Overflow
See other posts from Stack Overflow
or by AngryHacker
Published on 2010-03-21T02:48:47Z
Indexed on
2010/03/21
2:51 UTC
Read the original article
Hit count: 666
So Html.ActionLink("Report", "SendMail", "Misc", new { id = Model.ImageID }, null)
will generate a nicely formatted link.
<a href="http://localhost:3224/Misc/SendMail/5">Send Mail</a>
How can I generate just the URL of the link, short of parsing the output of Html.ActionLink?
© Stack Overflow or respective owner