2019年6月27日
摘要:
Session的概念 在现在UBF中,Session的本意是work unit,即持久层的一个边界,非常轻,主要用作批量提交,并标识这次批量提交的边界,不涉及到事务等概念。 当前ISession可以通过Session的Current属性获得,每调用一次Session的Open方法,Current属性
阅读全文
posted @ 2019-06-27 16:07
Xanthus博客
阅读(780)
推荐(0)
2019年5月1日
摘要:
1.使用模板template的时候必须要有跟节点,可以支持表达式,但不支持正则,想使用正则就用过滤器。 2.数据在显示的时候所带的HTML DOM直接显示,不会渲染,要渲染DOM,得用v-html。 3.使用v-model写单选和多选的时候,多选的数据关键字要用数组。 4.加了multiple="m
阅读全文
posted @ 2019-05-01 16:03
Xanthus博客
阅读(278)
推荐(0)
2019年4月25日
摘要:
工欲善其事,必先利其器,好的编辑器能让你的代码速度提升不少,vim就是不错的选择。笔者目前就是使用vim h,j,k,l 上,下,左,右 $ 跳至行尾 i 从当前光标处进入插入模式 I 进入插入模式,并置光标于行首 a 追加模式,置光标于当前光标之后 A 追加模式,置光标于行末 o 在当前行之下新加
阅读全文
posted @ 2019-04-25 22:32
Xanthus博客
阅读(174)
推荐(0)
2018年9月6日
摘要:
.ashx中引用 session必须 using System.Web.SessionState ,继承IReadOnlySessionState/IRequiresSessionState IReadOnlySessionState,为只读的session 不可以修改 IRequiresSessionState ,可以修改。 using System; using System.Web;...
阅读全文
posted @ 2018-09-06 16:17
Xanthus博客
阅读(631)
推荐(0)
2018年9月5日
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Configuration; using System.We...
阅读全文
posted @ 2018-09-05 23:51
Xanthus博客
阅读(624)
推荐(0)
摘要:
//图片 转为 base64编码的文本 private string ImgToBase64String(string Imagefilename) { try { Bitmap bmp = new Bitmap(Imagefilename); ...
阅读全文
posted @ 2018-09-05 10:07
Xanthus博客
阅读(2321)
推荐(0)
摘要:
首先引用使名空间: 然后写入代码:
阅读全文
posted @ 2018-09-05 09:51
Xanthus博客
阅读(266)
推荐(0)
posted @ 2018-09-05 01:59
Xanthus博客
阅读(495)
推荐(0)
摘要:
/// /// dataTable转换成Json格式 /// /// /// public static string ToJson(DataTable dt) { StringBuilder jso...
阅读全文
posted @ 2018-09-05 01:55
Xanthus博客
阅读(383)
推荐(0)
摘要:
/// /// 生成缩略图 /// /// 源图路径(绝对路径) /// 缩略图路径(绝对路径) /// 最大宽度 /// 最大高度 public static void CreatePic(string FromImagePath, string ToImagePath, do...
阅读全文
posted @ 2018-09-05 01:47
Xanthus博客
阅读(467)
推荐(0)