如何通过ASP.NET MVC使用视图和控制器显示图像 [英] how to display image using view and controller by ASP.NET MVC

查看:63
本文介绍了如何通过ASP.NET MVC使用视图和控制器显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过asp.net mvc使用视图和控制器来显示其他服务器的图像.我能怎么做?您能告诉我细节并给我细节吗?等着看你的答案.

I want to display images from other sever by using view and controller by asp.net mvc. how can i do? can u tell me detail and give me detail an exmaple? wait to see your answer.

谢谢奈良

推荐答案

要在视图中显示图像,可以使用< img> 标记:

To display image in a view you could use the <img> tag:

<img src="http://someotherserver/path/to/some/image.png" alt="" />

这篇关于如何通过ASP.NET MVC使用视图和控制器显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆