摘要:
1、Inline Helper Method 2、External Helper Method return String.Format("This is the message: {0}", msg); 3、Creating Form Elements 4、Input Helpers ... 阅读全文
摘要:
Control [ChildActionOnly] //只能用于Child Action public ActionResult Time() { return PartialView(DateTime.Now); } View @model DateTime The time is: @Mod... 阅读全文
摘要:
@Html.Partial("MyPartial") @Html.Partial("MyStronglyTypedPartial", new [] {"Apple", "Orange","Pear"}) //强类型 阅读全文
摘要:
@RenderSection("Header") @section Header { @foreach (string str in new [] {"Home", "List", "Edit"}) { @Html.ActionLink(str, str, null, new { style = "margin: 5px" }) ... 阅读全文