Getting Started

1. Download the Wojdav Bootstrap Mvc package from the Nuget package manager.

Downloaded Wojdav Bootstrap Mvc from Nuget Package Manager

2. In .NET Core MVC add the Wojdav_Bootstrap_Mvc namespace to the Views/_ViewImports.cshtml file.

                
                    @using Wojdav_Bootstrap_Mvc
                
            
_ViewImports.cshtml

2.A. In .NET MVC 5 add the Wojdav_Bootstrap_Mvc namespace to the Views/Web.config file.

                
                    <namespaces>
                        <add namespace="System.Web.Mvc" />
                        <add namespace="System.Web.Mvc.Ajax" />
                        <add namespace="System.Web.Mvc.Html" />
                        <add namespace="System.Web.Optimization"/>
                        <add namespace="System.Web.Routing" />
                        <add namespace="WebApplication" />
                        <add namespace="Wojdav_Bootstrap_Mvc" />
                    </namespaces>
                
            
Web.config

3. Start using varrious capabilities of the Wojdav Bootstrap Mvc library in views.

                
                    @Html.WB().Alert("MyAlert", AlertStyle.Info)
                    @Html.WB().TextBox().Name("Age").Value("55")
                    @Html.WB().Button("Submit", ButtonStyle.OutlinePrimary)
                    @Html.WB().TextBox().Name("Question").ToInputGroup().PrependButtons(
                        Html.WB().Button("Submit", ButtonStyle.OutlineSuccess))
                
            
Home.cshtml See Component List