简体   繁体   中英

Visual Studio project for Javascript, HTML website with debugging

I want to play with javascript and html and a bit more and would like to do so in Visual Studio. There is a very similar question here . The solution says I can can create an empty ASP.Net Web site and use that. But I can't find a project template for an 'empty ASP.Net Web site'. The closest I get is 'ASP.net core empty project' and that uses c# and I can't see how to get my html and javascript involved. How can I get this 'empty ASP.Net Web site' or how can I use the 'ASP.net core empty project'?

As GrafiCode said. Create an empty ASP.Net website.

enter image description here

enter image description here

The image above shows how to create an empty ASP.Net website. Hope it helps you.

ASP.Net always represents the backend, where your data come from and in "Views" you can just create normal html pages and of cause you can use Java script in there.

HomeController

public IActionResult Index()
{
    return View();
}

And in Views you have a Index file in "Home". There you can start with your page, but data only comes from the C# code if you need data from the database.

But my recommendation would be, if you just want to use html and javascript. Install VS Code and javascript via nvm and create a file index.html.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM