摘要: /// /// DataGrid列的合并 /// 注意:1.DataGrid在绑定的时候进行分组和排序,才能让相同的行放在一起 /// 2.方法应用的时机,应该在DataGrid的DataBound事件中使用 /// /// 需要合并的DataGrid对象 /// 所要合并列的索引 ... 阅读全文
posted @ 2016-05-17 14:17 小爆脾气 阅读(571) 评论(0) 推荐(0) 编辑
摘要: //添加合计列 DataTable dt = ds.Tables[0]; if (dt != null && dt.Rows.Count > 0) { DataRow dr = dt.NewRow(); dr[0] = "合计"; dr[1] = dt.Compute("sum(短信)", ""); 阅读全文
posted @ 2016-04-27 11:30 小爆脾气 阅读(106) 评论(0) 推荐(0) 编辑
摘要: DECLARE @name NVARCHAR(MAX) SET @name = '' SELECT @name = @name + ',' + SrmName FROM showroom SELECT @name 阅读全文
posted @ 2016-04-26 11:27 小爆脾气 阅读(683) 评论(0) 推荐(0) 编辑
摘要: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Method = "POST"; request.ContentType = "application/json"; request.ContentLength = Encodin... 阅读全文
posted @ 2016-03-28 10:58 小爆脾气 阅读(113) 评论(0) 推荐(0) 编辑
摘要: window.close() window.open("about:blank","_self").close() window.open("","_self").close() 如果是frame的时候如下写法: window.top.close() window.open("about:blank 阅读全文
posted @ 2016-03-25 10:12 小爆脾气 阅读(195) 评论(0) 推荐(0) 编辑
摘要: if object_id('grade')is not null drop table gradegocreate table grade(姓名 varchar(10),课程 varchar(10),分数 int)insert into grade values('张三','语文',74)inser 阅读全文
posted @ 2016-03-18 18:12 小爆脾气 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Jquery JS 阅读全文
posted @ 2016-03-15 13:50 小爆脾气 阅读(146) 评论(0) 推荐(0) 编辑
摘要: protected void dgExhList_ItemDataBound(object sender, DataGridItemEventArgs e) { string param = ""; if (e.Item.ItemType == ListItemType.Item || e.Item 阅读全文
posted @ 2016-03-10 17:17 小爆脾气 阅读(168) 评论(0) 推荐(0) 编辑
摘要: filpath字段值:/DataFile/UpLoad/Logo/NoPhoto.jpg select filpath,REVERSE((SUBSTRING(REVERSE(FilPath),0,CHARINDEX('/',REVERSE(filpath))))) from FileInfo 结果N 阅读全文
posted @ 2016-03-09 18:58 小爆脾气 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 可以自己查询系统表: SELECT o.name AS tableName, c.name AS columnName, p.[value] AS Description FROM sysproperties p INNER JOIN sysobjects o ON o.id = p.id INNE 阅读全文
posted @ 2016-03-07 10:39 小爆脾气 阅读(361) 评论(0) 推荐(0) 编辑