假设按一按钮删除,则在page_onload里写
BtnDelete.Attributes["onclick"] = "javascript: window.confirm("Are you sure?");"