IIS Server Side Includes do not show on mobile

77 views Asked by At

I have IIS 7 and Server Side Includes work fine in all desktop browsers. But when I try on mobile (iPhone or Android) they don't show. Code extract:

<body>
    <!--#include file="Header.cshtml"-->
    <img src="Images/Dublin02.png" class="banner">

1

There are 1 answers

0
Integratron On

Ok found out it's the file extension. I was using index.cshtml but when I change it to index.shtml it worked.