如何根据用户银行帐户余额的多少进行显式的提交或终止?

来源:asp之家 时间:2009-11-22 19:28:00 

<%@ 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
%>

标签:银行,asp,账户
0
投稿

猜你喜欢

  • Oracle动态交叉表生成

    2010-07-27 12:55:00
  • 修改Linux下MySQL 5.0的默认连接数

    2009-09-01 10:16:00
  • Coda 前端开发插件 F2E Tools

    2009-09-22 14:53:00
  • JavaScript框架比较:DOM遍历

    2010-04-23 14:41:00
  • 电商网站的购买按钮

    2011-07-04 12:18:59
  • asp如何验证日期输入是否正确?

    2010-06-10 18:38:00
  • sqlserver中将varchar类型转换为int型再进行排序的方法

    2012-07-11 15:34:41
  • 新手入门:防范SQL注入攻击的新办法

    2009-03-11 15:14:00
  • 几个ASP字符串处理函数

    2008-04-23 12:55:00
  • 在asp中通过vbs类实现rsa加密与解密

    2010-05-27 12:18:00
  • 介绍讲解MySQL安装下载登录

    2010-10-25 20:34:00
  • 真正保险的“有属性”检测

    2010-03-28 13:25:00
  • 月影:JavaScript王者归来

    2008-08-05 17:18:00
  • 对“关于购物车的想法”的一些回复

    2009-03-10 18:15:00
  • Google Chrome CSS选择器速度测试比较

    2008-10-06 13:24:00
  • 数据库主键的故事

    2008-05-31 07:50:00
  • WEB3.0时代的开放与聚合

    2008-08-21 17:19:00
  • 在 SQL Server 数据库开发中的十大问题

    2009-07-02 16:39:00
  • Oracle 数据库 临时数据的处理方法

    2009-07-02 11:48:00
  • 用ASP编程实现网络内容快速查找

    2007-09-16 17:56:00
  • asp之家 网络编程 m.aspxhome.com