Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的应用程序的产品图像存储在不同的服务器上,但不知道要修改什么以及应用程序文件的位置,以便从不同的服务器获取产品图像。
终于找到了。就像将外部站点名称放在 ImageUrl 函数之前一样简单。aspdnsf:ImageUrl() 函数返回图像 url,类似于“/images/Product/large/nnn.jpg”
要引用外部站点,只需使用 < img src="http://www.somesitename.com{aspdnsf:ImageUrl(ProductID, 'Product', 'large', false)}" />