摘要:
/// /// DataGrid列的合并 /// 注意:1.DataGrid在绑定的时候进行分组和排序,才能让相同的行放在一起 /// 2.方法应用的时机,应该在DataGrid的DataBound事件中使用 /// /// 需要合并的DataGrid对象 /// 所要合并列的索引 ... 阅读全文
摘要:
//添加合计列 DataTable dt = ds.Tables[0]; if (dt != null && dt.Rows.Count > 0) { DataRow dr = dt.NewRow(); dr[0] = "合计"; dr[1] = dt.Compute("sum(短信)", ""); 阅读全文
摘要:
DECLARE @name NVARCHAR(MAX) SET @name = '' SELECT @name = @name + ',' + SrmName FROM showroom SELECT @name 阅读全文
摘要:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Method = "POST"; request.ContentType = "application/json"; request.ContentLength = Encodin... 阅读全文
摘要:
window.close() window.open("about:blank","_self").close() window.open("","_self").close() 如果是frame的时候如下写法: window.top.close() window.open("about:blank 阅读全文
摘要:
if object_id('grade')is not null drop table gradegocreate table grade(姓名 varchar(10),课程 varchar(10),分数 int)insert into grade values('张三','语文',74)inser 阅读全文
摘要:
protected void dgExhList_ItemDataBound(object sender, DataGridItemEventArgs e) { string param = ""; if (e.Item.ItemType == ListItemType.Item || e.Item 阅读全文
摘要:
filpath字段值:/DataFile/UpLoad/Logo/NoPhoto.jpg select filpath,REVERSE((SUBSTRING(REVERSE(FilPath),0,CHARINDEX('/',REVERSE(filpath))))) from FileInfo 结果N 阅读全文
摘要:
可以自己查询系统表: 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 阅读全文