<%@ transaction = required %>
<%
response.buffer = true
' 緩存輸出,以顯示不同的頁面.
%>
<html>
<body>
歡迎使用千花飛舞之在線銀行服務.
<%
set bankaction = server.createobject("myexample.bankcomponent")
bankaction.deposit(request("acctnum"))
%>
<p>您的提交的事務已進入處理中...</p>
</body></html>
<%
' 處理成功則顯示此頁面.
sub ontransactioncommit()
response.write "<html>"
response.write "<body>"
response.write "恭喜,您的帳戶已經存入."
response.write "</body>"
response.write "</html>"
response.flush()
end sub
%>
<%
' 處理失敗則顯示此頁面.
sub ontransactionabort()
response.clear()
response.write "<html>"
response.write "<body>"
response.write "對不起,未能完成您的提交操作!"
response.write "</body>"
response.write "</html>"
response.flush()
end sub
%>