王彬 程序员 王彬 ASP PHP C# .NET AJAX 笔记

我的PHP,.NET开源之路

if (e.Row.RowType == DataControlRowType.Pager)
        
{
            Button btn 
= (Button)(e.Row.FindControl("btnDel"));
            
if (btn != null)
            
{
                btn.Attributes.Add(
"onclick""return confirm('确定删除吗?')");
            }

        }
posted on 2008-02-03 23:50  wangbin  阅读(323)  评论(0编辑  收藏  举报