开发者

Where do I put picture in my ASP.Net MVC2 application?

Where do I place images within my开发者_如何学JAVA solution?


I usually create Images folder inside Content folder. Most 3rd party components that use .css files search images subdirectory for their images by default.


You could put them in the Content folder, along with your .css files. Or you could create a brand new folder and organize it any way you like.


In the content folder.


We have a separate resources domain that serves up all static content (recommended). In the solution, I just have a 'resources' folder that mimics the structure of the production folder. Easier to deploy using a script. You can create a separate site or vdir on your local web server and map it to this static folder. The location could then be refernced in your project via an app setting (configuration.resourcedomain + "/resources/images/xyz.jpg")

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜