Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get images to display with ASP.NET and app_offline.htm?

Tags:

asp.net

iis-6

When using the app_offline.htm feature of ASP.NET, it only allows html, but no images. Is there a way to get images to display without having to point them to a different url on another site?

like image 471
Joshua Turner Avatar asked Aug 28 '08 16:08

Joshua Turner


2 Answers

Yes, it just can't come from the site that has the app_offline.htm file. The image would have to be hosted elsewhere.

like image 135
Ryan Farley Avatar answered Sep 24 '22 06:09

Ryan Farley


Another solution is to embed the image inside the app_offline.htm page using a data URI. There is wide support for this these days - see the following for full details - http://en.wikipedia.org/wiki/Data_URI_scheme

like image 32
Alex Avatar answered Sep 22 '22 06:09

Alex