摘要: string str = "2,6,34,2,123,122,342,11"; string[] idArray = str.StringFilterSql().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); 阅读全文
posted @ 2016-08-10 13:43 xiaoxiaoma1 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: public void FileUpLode(HttpPostedFileBase FileBase, string ClyID, string FileType) { var HFilename = ""; if (!string.IsNullOrEmpty(FileBase.FileName)) 阅读全文
posted @ 2016-08-10 13:39 xiaoxiaoma1 阅读(217) 评论(0) 推荐(0) 编辑
摘要: declare @AlyID int select @AlyID=AlyID from tableA WHERE comid=1 --查看表是否存在数据 if isnull(@AlyID,'')!='' and @AlyID !='' --存在数据,进行修改 begin UPDATE tableA 阅读全文
posted @ 2016-08-09 10:07 xiaoxiaoma1 阅读(853) 评论(0) 推荐(0) 编辑
摘要: declare @i intset @i=0while @i<1073begin update Actor set AtrPwd = RIGHT(100000000 + CONVERT(bigint, ABS(CHECKSUM(NEWID()))), 6) --where aid=2 set @i= 阅读全文
posted @ 2016-08-09 09:54 xiaoxiaoma1 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 给服务器端下拉asp:DropDownList 绑定改变事件,页面加载写ddl_GJ.Attributes.Add("onchange", "IsShow()"); //需要注意的是ie下中文需要转码:encodeURI(GJZ, "utf-8") function IsShow() { //获取城 阅读全文
posted @ 2016-08-09 09:42 xiaoxiaoma1 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 单选按钮: var checkItem = $("input[type=radio][name=rblIviGender]:checked"); if (checkItem.length <= 0) { MsgTip.show({ msg: "请选择性别!", ico: "warning" }); 阅读全文
posted @ 2016-08-09 09:40 xiaoxiaoma1 阅读(1849) 评论(0) 推荐(0) 编辑
摘要: var fileName = $("#YZFile").val(); if (fileName == "" || fileName == null) { alert("请上传护照照片"); return false; } else { var dom = document.getElementByI 阅读全文
posted @ 2016-08-09 09:35 xiaoxiaoma1 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: 邮箱:var regEmail = /^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 公司姓名:var reggongsi = /^([\u4E00- 阅读全文
posted @ 2016-08-08 15:45 xiaoxiaoma1 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 在登陆成功的一瞬间添加如下代码 //设置单点登录 string sKey = username; // 得到Cache中的给定Key的值 string sUser = Convert.ToString(Cache[sKey]); // 检查是否存在 if (sUser == null || sUse 阅读全文
posted @ 2016-08-08 15:30 xiaoxiaoma1 阅读(392) 评论(0) 推荐(0) 编辑
摘要: ///1. lock(this)的缺点就是在一个线程(例如本例的t1)通过执行该类的某个使用"lock(this)"的方法(例如本例的LockMe())锁定某对象之后, 导致整个对象无法被其他线程(例如本例的主线程)访问 - 因为很多人在其他线程(例如本例的主线程)中使用该类的时候会使用类似lock 阅读全文
posted @ 2016-08-08 15:29 xiaoxiaoma1 阅读(3218) 评论(0) 推荐(0) 编辑