標籤
.net
(
17
)
工作
(
29
)
面試
(
2
)
筆記
(
2
)
筆記倉庫
(
1
)
嘸蝦米
(
2
)
繪圖
(
1
)
Add-on
(
4
)
Android
(
39
)
AngularJS
(
1
)
ASP.NET
(
14
)
AutoHotKey
(
20
)
AutoIt
(
3
)
batch
(
24
)
Blogger Hack
(
3
)
Bookmarklet
(
18
)
C#
(
16
)
Chrome
(
1
)
cmd
(
22
)
CSS
(
6
)
CSS3
(
6
)
D855
(
1
)
DOM
(
17
)
DragOnIt
(
5
)
EmEditor
(
1
)
English
(
1
)
ffmpeg
(
1
)
Firefox
(
25
)
flo
(
2
)
GIMP
(
1
)
gist
(
144
)
Graphviz
(
1
)
hardware
(
1
)
HDD
(
1
)
HTML5
(
4
)
i18n
(
1
)
IIS
(
4
)
ImageMagick
(
5
)
Java
(
1
)
JavaScript
(
92
)
jhead
(
1
)
jQuery
(
6
)
JSBin
(
19
)
jsFiddle
(
4
)
JSON
(
1
)
JustDoubleClick
(
1
)
Kindle
(
1
)
MSSQL
(
26
)
MySQL
(
2
)
Network
(
1
)
node.js
(
12
)
php
(
1
)
PowerShell
(
6
)
ramdisk
(
1
)
Reg
(
3
)
RegExp
(
3
)
rpi3
(
3
)
SJ2000
(
1
)
SQLite
(
3
)
SSD
(
1
)
Stylish
(
1
)
SublimeText
(
2
)
tips
(
6
)
userChrome.js
(
3
)
userscript
(
40
)
VB.net
(
9
)
VBScript
(
2
)
VisualStudio
(
2
)
Vue.js
(
3
)
Win
(
5
)
Win2008
(
1
)
Win7
(
29
)
WinAPI
(
1
)
Winform
(
1
)
WinXP
(
3
)
XML
(
1
)
Microsoft ASP.NET AJAX UpdatePanel
標籤:
ASP.NET
,
JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//pageLoad is executed after every postback, synchronous or asynchronous. | |
//pageLoad is a reserved function name in ASP.NET AJAX that is for this purpose. | |
function pageLoad(sender, args) { | |
alert('Ajaxed'); | |
} | |
// beginRequest 事件會在非同步回傳的處理開始之前,以及回傳傳送到伺服器之前引發。 | |
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler); | |
function BeginRequestHandler(sender, args) { | |
alert('Request Begin'); | |
console.log(args.get_postBackElement()) //觸發元件 | |
} | |
//在完成非同步回傳,並將控制項傳回到瀏覽器之後,便會引發 endRequest 事件。 | |
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); | |
function EndRequestHandler() { | |
alert('Request End'); | |
} |
PageRequestManager 事件 ASP.NET AJAX > Overview > ASP.NET AJAX Client Life-Cycle Events asp.net ajax - How to have a javascript callback executed after an update panel postback? - Stack Overflow
Parameter組合SQL WHERE IN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim sb As New StringBuilder | |
Dim strTmp As String = String.Empty | |
For i As Integer = 0 To aryDeptID.Length - 1 | |
strTmp = strTmp + "@param" + i.ToString + "," | |
Next | |
sb.AppendLine(" SELECT AccountID ") | |
sb.AppendLine(" FROM tb_Members ") | |
sb.AppendLine(" WHERE DeptID IN (") | |
sb.Append(strTmp.TrimEnd(",")) | |
sb.Append(")") | |
cmd = dbConn.GetSqlStringCommand(sb.ToString) | |
For i As Integer = 0 To aryDeptID.Length - 1 | |
dbConn.AddInParameter(cmd, "@param" + i.ToString, DbType.String, aryDeptID(i)) | |
Next | |
dtDeptAcc = dbConn.ExecuteDataSet(cmd).Tables(0) |
解決ASP.NET的SqlCommand,利用SqlParameter來下SQL指令"Where In"的問題 - F6 Team- 點部落
js String.format
標籤:
JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!String.prototype.format) { | |
String.prototype.format = function() { | |
var args = arguments; | |
return this.replace(/{(\d+)}/g, function(match, number) { | |
return typeof args[number] != 'undefined' ? args[number] : match; | |
}); | |
}; | |
} |
JavaScript equivalent to printf/string.format - Stack Overflow
TimerExist
標籤:
AutoHotKey
註1:可搭配這款stopwatch使用。
註2:GLOBAL interval可調整偵測頻率(預設3秒/次)。
註2:GLOBAL interval可調整偵測頻率(預設3秒/次)。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#F1:: | |
GLOBAL winTitle | |
GLOBAL counter = 0 | |
GLOBAL interval = 3 | |
WinGetTitle, winTitle, A | |
TrayTipTime(,"【" winTitle "】監視中") | |
ControlSend, , rs, Stop Watch | |
t := interval * 1000 | |
SETTIMER, chkExist, %t% | |
RETURN | |
chkExist: | |
{ | |
counter++ | |
IfWinNotExist %winTitle% | |
{ | |
calcElapsedTime() | |
ControlSend, , t, Stop Watch | |
MSGBOX 【 %winTitle% 】 視窗已關閉.`n`n%counter% | |
SETTIMER , chkExist, OFF | |
RETURN | |
} | |
} | |
calcElapsedTime() | |
{ | |
totalSec := counter * interval | |
M := totalSec // 60 | |
S := totalSec - M * 60 | |
counter = Elapsed Time : %M% min. %S% sec. | |
} | |
TrayTipTime(Title="", Text="", Time=1500, Style=0) | |
{ | |
TrayTip, %Title%, %Text%,, %Style% | |
SetTimer, TrayTipRemove, %Time% | |
Return | |
TrayTipRemove: | |
TrayTip | |
SetTimer, TrayTipRemove, Off | |
Return | |
} |
UNION ALL vs UNION
- UNION ALL 和 UNION 不同 之處在於 UNION ALL 會將每一筆符合條件的資料都列出來,無論資料值 有無重複。
- SQL1 union SQL2 : SQL1+SQL2 後的資料會自動重新排序, 且 SQL1 與 SQL2 的重複資料只顯示一筆。
- SQL1 union all SQL2: SQL1+SQL2 後資料不會自動重新排序, 且 SQL2 資料直接銜接到 SQL1 資料之後, 也就是 SQL1 與 SQL2 可以有重複資料。
訂閱:
文章
(
Atom
)