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


Many times in grid/repeater or even in image display we have a problem if we don’t find any image related to that ID/Record and to replace “X” sign or image not found message we need to do programming but here is the
Quick solution which saves lot’s of your time and also your server processing time.
Just put following code in your in your image control.


onerror="this.onerror=null;this.src='Noview.jpg'">

Comments