https://github.com/baynezy/mvc.bootstrap
This is a library project the extend the HtmlHelper class in ASP.Net MVC to allow you create forms for Twitter's Bootstrap CSS project.
https://github.com/baynezy/mvc.bootstrap
Last synced: 16 days ago
JSON representation
This is a library project the extend the HtmlHelper class in ASP.Net MVC to allow you create forms for Twitter's Bootstrap CSS project.
- Host: GitHub
- URL: https://github.com/baynezy/mvc.bootstrap
- Owner: baynezy
- License: apache-2.0
- Created: 2012-06-22T05:25:07.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-11-18T09:12:08.000Z (over 1 year ago)
- Last Synced: 2025-04-14T03:07:56.499Z (16 days ago)
- Language: C#
- Size: 3.49 MB
- Stars: 13
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
#MVC.Bootstrap
This is a library project the extend the HtmlHelper class in ASP.Net MVC to allow you create forms for Twitter's Bootstrap CSS project.
[](http://waffle.io/baynezy/MVC.Bootstrap)
## Build Status
## Documentation
Fully navigable documentation available on [GitHub Pages](http://baynezy.github.io/MVC.Bootstrap/)##Usage
### Install via NuGet
[](http://badge.fury.io/nu/MVC.Bootstrap.Core)
Install-Package Mvc.Bootstrap.Core
### Make Available in Razor
So you can use the extension methods in your views you need to update the web.config in your views directory to add a reference to the new .dll.
### Use in your Views
#### Example Model
public class Item
{
public string Title { get; set; }
public string Description { get; set; }
}#### Usage in a View
@model Item
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new {@class = "form-vertical"}))
{
@Html.TextBoxControlGroupFor(m => m.Title)
@Html.TextAreaControlGroupFor(m => m.Description)@Html.ButtonFormAction("Submit", Buttons.Primary)
}This will create an ASP.Net MVC Input Extension that works with Twitter Bootstrap 3.0. This includes validation and error messages.
##Contributing
###Pull Requests
After forking the repository please create a pull request before creating the fix. This way we can talk about how the fix will be implemented. This will greatly increase your chance of your patch getting merged into the code base.
## License
This project is licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).