Demo Link :- http://jsfiddle.net/rahuldass/XUXNp/
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
Demo Link :- http://jsfiddle.net/rahuldass/XUXNp/
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
Demo Link :- http://jsfiddle.net/rahuldass/mj3UQ/7/
Make it the first <div>
under the <body>
tag.
HTML
Display a default Image in the Image control, when the original image is not available. The same solution can be applied to both ASP.NET Image Controls as well as HTML image controls
For ASP.NET Image Control
<asp:Image ID="imgProd" runat="server"
onerror="this.onload = null; this.src='ImageurlORAnyImageHere.jpg';"/>
For HTML Image