点滴积累,融会贯通

-----喜欢一切有兴趣的东西

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2006年2月5日

摘要: 在DataGrid的使用中,经常需要为删除按纽添加确认对话框,根据我的学习经验,总结了三种方法,原理都是在客户端为删除按纽添加脚本代码来实现删除前弹出确认对话框。 方法一: 当为DataGrid控件添加删除按纽后,为DataGrid控件添加ItemDataBound事件处理程序,代码如下: //添加删除确认对话框。 switch(e.Item.ItemType) { case Li... 阅读全文
posted @ 2006-02-05 11:08 小寒 阅读(374) 评论(0) 推荐(0) 编辑

摘要: DataGrid1.Attributes.Add("onclick","window.open('Print_GoodsMove.aspx?GoodsMove_ID=" + Apply_ID + "','newwindow', 'height=600, width=745, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resi... 阅读全文
posted @ 2006-02-05 11:04 小寒 阅读(734) 评论(0) 推荐(0) 编辑