Answer the question
In order to leave comments, you need to log in
How to link to an html page in ASP.Net?
How to link to a link html page in ASP.Net. Tried this method
void home(IApplicationBuilder appBuilder)
{
appBuilder.Run(async context => await context.Response.SendFileAsync("wwwroot/index.html"));
}
and announced. using app.Map("/Home" , home);
. Answer the question
In order to leave comments, you need to log in
just add addStaticFiles();
and put the file in wwwroot/index.html
As a result, auxiliary files (styles and scripts) do not work.
app.UseStaticFiles();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question