04 2021 档案
摘要:System.Data.DataTable dtSource = ToDataTable<EmpExtension>(empList); Response.ContentType = "application/vnd.ms-excel"; Response.ContentEncoding = Enc
阅读全文
摘要:项目报错,起初以为是dll问题,结果各种不行。 后来查资料,才发现是要将网站对应的应用程序池 里面的表示设置为 LocalSystem 设置一次即可,以后设置成其他也行
阅读全文
摘要:System.Data.DataTable dtSource = ToDataTable<EmpExtension>(empList); //数据源 context.Response.ContentType = "application/vnd.ms-excel"; context.Response
阅读全文
摘要:让文字超过div宽度的时候,自动换行 word-wrap: break-word; word-break: break-all; 假如想让文字两行显示,超过两行时以省略号结尾,则需要设置 display:-webkit-box;text-overflow:ellipsis;-webkit-line-
阅读全文
摘要:SqlConnection conn = new SqlConnection(connString); conn.Open(); SqlTransaction trans = conn.BeginTransaction(); try { //插入操作 conn.Execute(@"insert in
阅读全文