2016 系统设计第一期 (档案一)MVC 和 Bootstrap 表单转换
2016-01-17 16:20
615 查看
bootstrap
MVC
说明:
<form role="form"> <div class="form-group"> <label for="name">名称</label> <input type="text" class="form-control" id="name" placeholder="请输入名称"> </div> <button type="submit" class="btn btn-default">提交</button> </form>
MVC
@using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" })) <div class="form-group"> <label for="name">名称</label> @Html.TextBox("name", "", new { @class = "form-control", placeholder = "请输入账号" }) </div> <button type="submit" class="btn btn-default">提交</button> }
说明:
@using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" }))
Create:执行的Action
User:控制器Controller
相关文章推荐
- 【Spring】Spring MVC文件上传--整合bootstrap-fileinput和jQuery-File-Upload
- Bootstrap 栅格系统
- 【Spring】Spring MVC文件上传--整合bootstrap-fileinput和jQuery-File-Upload
- bootstrap与360浏览器不兼容问题
- Java教程]JavaEE框架Bootstrap、HTML5、jQuery、SpringMVC
- 分布式java shiro、maven、Bootstrap、Bootstrap、SpringMVC、Mybatis、Hibernate
- 关于bootstrap-datetimepicker 插件的配置参数详解
- 002-bootstrap图标的使用。
- 001-bootstrap学习起步,搭建bootstrap环境。
- 开始学习bootstrap啦!
- 0001 -- 搭建bootstrap环境。
- 0002 -- bootstrap 图标的使用。
- 0003 -- bootstrap 按钮的使用。
- Java源码 SpringMVC Mybatis Shiro Bootstrap Rest Webservice
- 自学BootStrap(第一季)
- bootstrap 图标库
- bootstrap-datetimepicker控件位置异常
- bootstrap ace admin 整合java HTML5 全新高大尚web后台框架
- Bootstrap 手风琴搭配导航条实现常用菜单栏
- Bootstrap之插件