Let's go
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 59 下一页
摘要: form表单的enctype设置为multipart/form-data后,表单中除了文件后台能拿到,其他值后台都拿不到。 知识点: 一、application/x-www-form-urlencoded: 1、表单中的enctype值如果不设置,则默认是application/x-www-form 阅读全文
posted @ 2018-07-31 15:27 chenze 阅读(275) 评论(0) 推荐(0)
摘要: 一丶静态类: 静态类中只能存在静态成员(静态方法和静态字段) 二丶log4net插入数据库失败 设置的类型,异常字符串大于了字段长度^^,最后就OK了 三丶允许值类型为NULL的写法 DateTime? date = null; 等效于: Nullable<DateTime> date = null 阅读全文
posted @ 2018-07-30 10:48 chenze 阅读(201) 评论(0) 推荐(0)
摘要: 委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。事件是一种特殊的委托。 一丶委托的声明 (1). delegate delegate我们常用到的一种声明 Delegate至少0个参数,至多32个参数,可以无返回值,也可以指定返回值类型。 例:public delega 阅读全文
posted @ 2018-07-30 09:27 chenze 阅读(192) 评论(0) 推荐(0)
摘要: 一丶执行 class Program { static void Main(string[] args) { var db = new TestDBEntities(); string sql = @"select * from UserInfor where id =@id"; SqlParame 阅读全文
posted @ 2018-07-27 13:42 chenze 阅读(228) 评论(0) 推荐(0)
摘要: 一丶登录页面不显示 第一个接触公司框架,实现登录页面的时候。之前发现不跳转页面,Dug尝试多次都不进入Controller里的action。也是开始不习惯过滤器的使用,拦截。后来在Controller里加入 [Skip] 正常解决 阅读全文
posted @ 2018-07-20 10:17 chenze 阅读(214) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 59 下一页
有事您Q我