上一页 1 ··· 27 28 29 30 31
摘要: 废话少说,直接上图 →_→ NO.1 NO.2 NO.3 NO.4 NO.5 NO.6 NO.7 NO.8 NO.9 NO.10 NO.11 NO.12 NO.13 NO.14 NO.15 NO.16 NO.17 NO.18 展示效果~ 阅读全文
posted @ 2016-02-24 10:22 shuai7boy 阅读(243) 评论(0) 推荐(0)
摘要: 使用前: public static class MyHtmlHelper 2 { 3 public static string GroupPage(this HtmlHelper helper) 4 { 5 string html1 = "<span style='color:red;'>hell 阅读全文
posted @ 2016-02-23 07:12 shuai7boy 阅读(2573) 评论(0) 推荐(0)
摘要: 我们有时想创建强类型视图,却发现下拉列表里面没有东西,这时不要慌,这是因为你没有编译造成的,编译一下就好了~ 阅读全文
posted @ 2016-02-23 06:39 shuai7boy 阅读(433) 评论(0) 推荐(0)
摘要: View代码中:冒号和等号的区别:冒号后面的内容是经过Encode编码后输出内容等号后面是直接输出内容所以相对来说:前面更安全一些<%:Html.DropDownList("MyStyle)%> ><span>111</span><%=Html.DropDownList("MyStyle)%> >1 阅读全文
posted @ 2016-02-22 17:15 shuai7boy 阅读(724) 评论(0) 推荐(0)
摘要: 在MVC的Controller(控制器)里面定义相同的方法时,我们需要解决重载问题: 解决方案一:在参数中定义一个FormCollection类型,解决问题 [HttpSet] public ActionResult Add() { [HttpPost] public ActionResult Ad 阅读全文
posted @ 2016-02-22 12:54 shuai7boy 阅读(2401) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31