This page is in the following directory
D:\InetPub\vhosts\crystalcomputerconcepts.com\httpdocs\aspworks
The file name is: /ReturnIndexCS.cshtml
This file has a different extension
The razor code that found the directory is:
@{ string strDir = Server.MapPath(".");}
The directory is obained wih the razor code @strDir
{ <p>his file ends with .html</p> } else if (strDir.EndsWith(".htm", StringComparison.OrdinalIgnoreCase)) { <p>This file ends with .htm</p> } else { <p>This file has a different extension</p> }
Return to Table of Contents
@if (strDir == (@"D:\InetPub\vhosts\crystalcomputerconcepts.com\httpdocs\ASPtestSite")) { <p>p>Return to <a href='index.html'>Table of Contents</a></p> } else { <p>p>Return to <a href='index.htm'>Table of Contents</a></p> }