December 2018
Beginner to intermediate
668 pages
15h 30m
English
If the index.html file was returned as the default response for the website instead of having to enter its filename, it would be better.
In Startup.cs, add a statement to the Configure method to enable default files, as shown in the following code:
app.UseDefaultFiles(); // index.html, default.html, and so on
Start the website, and note that the index.html file is now returned immediately because it is the default web page for this website.
If all web pages are static, that is, they only get changed manually by a web editor, then our website programming work is complete. But, almost all websites need dynamic content. For example, ...
Read now
Unlock full access