In this post I will explain how to write MVC Action link with Html text.
MVC Razor View
<a href='@Url.Action("MyAction", "MyController")'>
<span>My Asp.Net</span>
</a>
MVC Html View
<a href='<%: Url.Action("MyAction", "MyController") %>'>
<span>My Asp.Net</span>
</a>
MVC Razor View
<a href='@Url.Action("MyAction", "MyController")'>
<span>My Asp.Net</span>
</a>
MVC Html View
<a href='<%: Url.Action("MyAction", "MyController") %>'>
<span>My Asp.Net</span>
</a>
No comments:
Post a Comment