Blog Post

Static html pages served from mvc application

Tuesday, August 11, 2015 12:32 AM

I wanted to create a template file for my angular template file.

Now usually I needed to write custom logic to serve html file for request, but this time I wanted to see if there is an better solution.


Create folder "~/Static/" in root of your application

Insert your file into this.


Insert your template file in this folder. In my case 'businesLine.html'. 

You do not need to do anything else and the file will be served.


Hope this helps



Last posts

12/01/19 - Hybrid Cloud

12/01/19 - Private cloud

12/01/19 - Public Cloud

21/12/18 - Accessing Raspberry PI 3 B

16/10/18 - ICloud installation into Outlook 365 isn't configured to have a default profile