Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello everyone,

I am working on my first website using ASP.NET,
I downloaded free template of HTML5 (with javascript and css) so I want to use this template to build the website, In visual studio I can see just HTML files so I cant add any asp.net control like (textbox or whatever )
I very very novic with ASP.net and HTML, can you help me please?

What I have tried:

I added html files and folders contains css and javascript files to my website in visual studio but can't add or view design those pages.
Posted
Comments
AnasMHDAbbas 16-Jun-19 16:22pm    
I also created asp page and copy and paste html code to this page, the page viewed correctly but is this the right way to use HTML templates ?
F-ES Sitecore 17-Jun-19 4:07am    
That's the way I would do it. When you create an asp.net page Visual Studio will create the designer files for you and generate the right code at the top of the page. All you need to do then is replace the html on the page with your own.

Ideally you'll want to use master pages though rather than re-creating all of the html on every page so that will involve breaking your html up to put the "common" bits in the master page and the child pages will then populate the bits that change per page.
Udhay Titus P 19-Jun-19 4:21am    
do you want to keep .html page or .aspx page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900