摘要: @Html.ActionLink("删除", "DeleteSaleCours",item, new { onclick="return confirm('确认删除?');"})”DeleteSaleCours“这个参数是连接控制器的删除方法最后一个参数就是客户端的脚本@Html.Action("TeaIntrPart", new { TeacherId = ViewBag.id })部分视图的传值 阅读全文
posted @ 2012-09-27 15:33 肅 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 例:@Html.TextBox(“HTML Control的名”,”這個TextBox的值”, HTML 特性設定/htmlAttributes new{ disabled=”true”})样例:@Html.TextBox("sendid", Model.Name, new { @readonly = "true" })第三个参数 直接设置控件属性 阅读全文
posted @ 2012-09-27 12:41 肅 阅读(358) 评论(0) 推荐(1) 编辑