Fundamentally an ASP.NET page is just the same as an HTML page. An HTML page has the extension .html where as an ASP.NET page has the extension .aspx. If you want to be a good web designer and are interested in a simple step-by-step explanation of how to convert an HTML page into an ASP.NET MVC Page, then keep reading.
Getting Started with step by step instructions!
1. Open the Visual Studio (Recommended Version: Visual Studio Community 2015) and start with making a New Project and give it a name.
If you're new at visual studio then no need to be worry, it is as easy as making a tea.
You just need to hold your horses. ;)
2. Choose ASP.NET Web Application from the New Project window. Change the the project name of your desire. Set the location of your project if needed and then click OK without making any other change.
3. Now choose the Empty ASP.NET template from the New ASP.NET MVC Project window. Below that you will see Add folders and core references for options. There you have to check the MVC as you are going to convert your html template into ASP.NET MVC. If you're done with this press OK to proceed.
4. Right click on your project name in solution explorer Add > New folder and name it as Scripts. Basically in ASP.NET script folder contains JavaScripts or VBScript files for the whole website.
Similarly make another folder named Content in which you will add CSS files. You need to make two more folders for images and fonts. Now its time to populate these folders. It is very simple! Go to your HTML Template folder and copy the images and paste them into the images folder of your project. You have to do the same for other folders.
5. Add HomeController:
From here the technical part starts. You have to pay more attention on it. Right click on the Controllers folder and add a controller. i.e: Add> Controller.
6. Select MVC 5 Controller - Empty and Press OK.
7. There you have to set the controller name. By default it will give it a name asDefaultController. Lets rename it. We would prefer to name it as HomeController.


Thennarasu NPosted Feb 17, 2017, 4:15 AM
Good one keep Going
Sinraj VPosted Sep 19, 2016, 4:45 AM
Nice one...