Best way to display default image if specified image file is not found?

后端 未结 6 2056
清歌不尽
清歌不尽 2021-02-04 06:12

I\'ve got your average e-Commerce app, I store ITEM_IMAGE_NAME in the database, and sometimes managers MISSPELL the image name.

To avoid \"missing images\" (red X in IE

6条回答
  •  一个人的身影
    2021-02-04 06:58

    You might consider something with javascript

    
    

    Edit: Or program a 404.aspx returning a default image, if a nonexisting image was requested.

提交回复
热议问题