![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET
吾生也有涯S
这个作者很懒,什么都没留下…
展开
-
Html.Action、html.ActionLink与Url.Action的区别
1.html.ActionLink返回的指向指定controller、指定action的超链接标签标签.如果没有指定controller,则默认为本页面对应的Controller.如@Html.ActionLink(“链接文本”、“someaction”、“somecontroller”,new { id = " 123 " },null)生成:链接文本2、Html.Action可转载 2015-01-30 11:10:26 · 1114 阅读 · 0 评论 -
DropDownList 的使用
DorpDownListFor1. 直接在页面初始化 @Html.DropDownListFor(model => model.Status, new SelectList(new string[] {"正常", "暂停销售"}))2.ViewBag传递@Html.DropDownListFor(model => model.CarCategoryID, (SelectLi转载 2015-01-23 11:02:13 · 317 阅读 · 0 评论