Click here to Skip to main content
15,886,540 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
i want change the project Layout with my new bootstrap template..please mention steps
Posted
Comments
Mostafa Asaduzzaman 4-Jun-15 5:50am    
not clear, do you want to add bootstrap which improves the quality of your page. You can add bootstrap to your existing template. are you using mvc?

1 solution

If you create a new project in MVC 5 and select the Web Site template (not the empty), bootstrap and jquery packages with the necessary css file are added to your project by default.
So when you create any page, .Layout.cshtml is the master page for your page which has bootstrap added as default. So you don't need to add it by manually.

If you don't select the Web Site template and create the project with empty template then you need to add the bootstrap package manually. To to this, you can follow the steps below:
- Use nuget package manager for and search for the Bootstrap
- When it finds click it to install and it will be installed to your project
- the .js files will be in the Scripts folder and the css files will be in the Content folder
- in your page where you want to use bootstrap, drag the .js and .css fle and the you can start working with bootstrap

Hope this will help you.
 
Share this answer
 
Comments
Member 11692879 4-Jun-15 6:28am    
thanks for your solution.
Mostafa Asaduzzaman 4-Jun-15 6:34am    
You are most welcome. Let me know if need any thing more

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