Convert HTML website into ASP.NET

Today, i 'm going to discuss about the conversion of html website to asp.net !


First, lets just discuss the little about the asp.net.
It's a developing framework for web based languages. Like HTML,Css, JavaScript and server scripting languages. It was introduced by Microsoft in 1998.
Now after open the visual studio first create a new project. Now click web-> visual studio 2012 and create asp.net empty application.


After that in properties section click the name of the page and after right clicking it add new item then add web form master page as shown in the picture. click add.



A page will open as shown below. Now the task is that we have to make master page where we have to place the header and footer of the page. Now we have to add the html template or theme of website that is made in asp.net. and have to include them in the project. As the header and footer will appear in all pages so a page has been made where the code is static and will appear in all pages. Below is the picture of some code that will appear in web form master page.


Now here is the code from the index.html. From this file first we will copy the header. As shown below this code will be copied in the index.aspx page. For that we have to add web form with web form with master page and name it index or any other page that we are replicating from html to aspx. Here in the picture below. The header is copied that will be pasted in site1.master.



                                             Same like header i have pasted the footer.


                                  Here is the Site master where the code will be pasted.


Now add a web form with webmaster page. name that index. and the content of the page will be copied from index.html and will be pasted in index.aspx.




Here is the content of the page.

Here we will paste the code.



Now we will do the same for the other pages and will convert them in the aspx.

Comments

Popular posts from this blog

Input.Getaxis, OnMouseDown, GetComponent< > - Unity Scripts

How to move an object in Unity 3D

Parsing Xml or Rss Feeds through Data Binding