04 2014 档案

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 齐文宣 阅读(306) 评论(0) 推荐(0)

asp程序 LoggedInTemplate 的内容在登录后也不显示的原因
摘要:是因为web.config没写对 ,应该加上这段 阅读全文

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

在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 齐文宣 阅读(341) 评论(0) 推荐(0)

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 齐文宣 阅读(152) 评论(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 齐文宣 阅读(197) 评论(0) 推荐(0)

把下载的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 齐文宣 阅读(290) 评论(0) 推荐(0)

导航