![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MVC
文章平均质量分 70
TONY弟弟
这个作者很懒,什么都没留下…
展开
-
MVC 给DropDownList下拉框赋值
在Views中: @using (Html.BeginForm("ProblemSearchs", "Department", new RouteValueDictionary { { "id", "" } }, FormMethod.Get)) { div> @Html.DropDownList("departmentNo","--请选择--") div> }原创 2015-05-20 21:33:51 · 3292 阅读 · 1 评论 -
MVC 列表多条件动态查询分页
要下载一个MvcPager.dll 版本2.0不然没有效果的 Views中: 注释:为了使每次点击搜索按钮时都跳回第一页,BeginForm扩展方法中第三个参数用new RouteValueDictionary{{"id",""}}将页索引路由值指定为空值,否则若当前为第五页,则点击搜索按钮重新搜索后当前页仍然为第五页。 @model PagedListQuestion>原创 2015-05-20 22:00:17 · 3273 阅读 · 0 评论