开发者

MVC .NET 4.0 : Image Links

I was recently introduced to the HTMLhelper class....along with MVC in general.

Does MVC, or the HtmlHelper class give any alternates for image links...and static links? For example, if I want to display an image on a webpage, do I still have to do the traditional href tag?

I.e. <img 开发者_如何转开发src='/Content/Images/mypic.jpg' />

or is there a better way to do it via MVC and/or HtmlHelper class. I thought there may be a more dynamic linking approach that the HTMLhelper class may offer.

Thank You.


It is relatively easy to write one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜