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