摘要:
写Tab时为了保证慢加载下tab输出不乱必须在服务端写,然后就是出现了很多难看的if else,今天花了点时间写了个帮助类,跟ActionLink的使用一样。示例代码: <ul> <li>@Html.TabLink("新闻", "s", new { t = "n" }, new { onclick = "return channelSwitch('n');" }, "tab_selected")</li> <li>@Html.Tab 阅读全文
摘要:
public static HtmlHelper CreateHtmlHelper(ViewDataDictionary vd){ Mock<ViewContext> mockViewContext = new Mock<ViewContext>( new ControllerContext( new Mock<HttpContextBase>().Object, new RouteData(), new Mock<ControllerBase>().Object), new Mock<IVie... 阅读全文