The master page is now ready and looks like this:.Make sure to add jQuery file above the bootstrap file. Just above the end of the body tag, add the jQuery file and the file using the script tag with src attribute.In the tag surrounding the add the class class=”container”.Add the navigation bar ( navbar ) section from the downloaded bootstrap sample template below the start of the tag.Remove the tag set from the master page.Edit the new master page and link the bootstrap css inside the title block.For creating a master page, right-click the project in the solution explorer, select Add, select New Item… and create new Master Page. Create a master page for the project and re-name it if needed.Download the bootstrap starter template from.After including the files, the solution explorer looks like this.Then include the css folder and it’s contents to the project. Copy the css folder from the bootstrap zip file and place it inside the Content folder of the project. ![]() Place the 2 bootstrap js files in the Scripts folder and include them to the project from the solution explorer.There will be 2 folders, one with js files and another with css files. Extract the downloaded zip file ( bs-v3.0.0-rc1-dist.zip ).Download the latest version of Bootstrap from here.Then include the file jquery-2.0.3.min.js to the project from the solution explorer. Save the downloaded jQuery file in the Scripts folder in the project.I’ve downloaded the compressed, production jQuery 2.0.3. So download the latest version of jQuery from. After creating new folders the solution looks like this. Create another folder Content to store the css files and the image files.In the new project, create a folder Scripts to store the java script and jQuery files.Create a new ASP.NET Empty Web Application.Launch Visual Studio (I’m using Visual Studio Express 2012 for Web).Steps for using Bootstrap 3.0.0 with ASP.NET Web Forms: The sample code is available in the continuation article Bootstrap 3.0.0 with ASP.NET Web Forms – Step by Step – Sample Code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |