Possible Duplicate:
How to put span element inside ActionLink MVC3?
How to create custom MVC3 ActionLink method that generates this output:
<li>
<a href="/Home/ControllerName" data-ajax-update="#scroll"
data-ajax-mode="replace" data-ajax-method="GET"
data-ajax-loading="#progress" data-ajax="true">
<span>LinkText</span> // this span generated inside <a>
</a>
</li>
You either create a new extension method that returns an
MvcHtmlStringobject that you put together yourself (mind the html encoding, though), our you create a partial view that you can render when you need it, so you don’t have to create HTML through code.