上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2014年5月24日

自定义data table 的列类型,并填充数据

摘要: combobox 的 datasource一般是查询存储过程得到 ,但在测试或演示时,也可以自己定义 , 方法是 : DataTable customerTable = new DataTable(); customerTable.Columns.Add(... 阅读全文

posted @ 2014-05-24 13:56 齐文宣 阅读(2130) 评论(0) 推荐(0)

2014年5月16日

取某一个节点下的所有子节点

摘要: using System.Xml;using System.Xml.Linq;XmlDocument document = new XmlDocument();document.Load("SessionDef.xml");XmlNodeList nodelist = document.Select... 阅读全文

posted @ 2014-05-16 15:30 齐文宣 阅读(792) 评论(0) 推荐(0)

2014年4月25日

asp.net从masterPage继承的页面,如何在客户端用javascript取control(比如textbox)的值

摘要: 最初是想在用户点“确定"按钮之前给一个confirm,就像这样function confirmation() { if(confirm("Are you sure you want to delete?")) return true; else return false... 阅读全文

posted @ 2014-04-25 23:50 齐文宣 阅读(305) 评论(0) 推荐(0)

asp程序 LoggedInTemplate 的内容在登录后也不显示的原因

摘要: 是因为web.config没写对 ,应该加上这段 阅读全文

posted @ 2014-04-25 00:34 齐文宣 阅读(312) 评论(0) 推荐(0)

2014年4月24日

在Arvixe主机部署ASP.net程序 , web.config 写法

摘要: Arvixe主机是看不到c盘或d盘的, 所有操作都是通过 Control Panel ,地址是Address: http://cp.meijinaiwo.comAlternate Address: http://cp.dock.arvixe.comAlternate ... 阅读全文

posted @ 2014-04-24 23:52 齐文宣 阅读(339) 评论(0) 推荐(0)

2014年4月11日

SavePoint

摘要: Whenever you roll back a transaction, it nullifies the effect of every command you’ve executed sinceyou started the transaction. But what happens if you want to roll back only part of an ongoing transaction?SQL Server handles this with a feature called savepoints.Savepoints are markers that act li.. 阅读全文

posted @ 2014-04-11 13:59 齐文宣 阅读(148) 评论(0) 推荐(0)

@@ERROR 变量

摘要: 如果这样用UPDATE Accounts SET Balance = Balance + @Amount WHERE AccountID = @ID_AIF (@@ERROR > 0) GOTO PROBLEM需要注意: When using the @@ERROR value in Transact-SQL, you must be careful tocheck it immediately after each operation. That’s because @@ERROR is reset to 0 when a successfulSQL statement is comp 阅读全文

posted @ 2014-04-11 13:44 齐文宣 阅读(195) 评论(0) 推荐(0)

2014年4月4日

把下载的CSS文件改为可读的形式

摘要: 刚下载的CSS文件不分段,难读,所以用c#程序把它换为更可读的形式, 就是在 所有的 "{"之前 和 "}"之后 加回车和换行 程序如下 using System.IO; private void button1_Click(object sender, EventArgs e) { //get path OpenFileDialog op = new OpenFileDialog(); op.RestoreDirectory = true; op.Filter = "All... 阅读全文

posted @ 2014-04-04 15:29 齐文宣 阅读(289) 评论(0) 推荐(0)

2014年2月24日

sql语句笔记-2014-2-24

摘要: A 表 (充值记录表) 有以下的字段 -------hisreload 表ID (递增) , ToMobile(冲往哪个手机号) ,refID (guid ,表示一次事务) ......----------------------------------------------B表(transactions)有以下字段refID(与A表关联) , opTime (操作时间) ........--------------------------------------------想实现的功能是: 查询 所有手机号及其最后一次充值记录 , 并对操作时间过滤, 例如去掉 最后一次充值在 2013-9 阅读全文

posted @ 2014-02-24 14:29 齐文宣 阅读(215) 评论(0) 推荐(0)

inner join 和 left join 的 区别

摘要: inner join :The INNER JOIN keyword selects all rows from both tables as long as there is a match between the columns in both tables.left join :The LEFT JOIN keyword returns all rows from the left table (table1), with the matching rows in the right table (table2). The result is NULL in the right side 阅读全文

posted @ 2014-02-24 13:59 齐文宣 阅读(5307) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

导航