Putting HTML inside Html.ActionLink(), plus No Link Text?

后端 未结 11 1846
忘了有多久
忘了有多久 2020-11-28 01:54

I have two questions:

  1. I\'m wondering how I can display no link text when using Html.ActionLink() in an MVC view (actually, this is Site.Mast
11条回答
  •  爱一瞬间的悲伤
    2020-11-28 02:33

    I thought this might be useful when using bootstrap and some glypicons:

    ">
        Download
        
    
    

    This will show an A tag, with a link to a controller, with a nice paperclip icon on it to represent a download link, and the html output is kept clean

提交回复
热议问题