<script language='javascript'>
function Myconfirm()
{
return confirm('是否删除!');
}
</script>sub Page_load()
me.button1.attributes("onclick")="javascript:return Myconfirm();"
end sub
function Myconfirm()
{
return confirm('是否删除!');
}
</script>sub Page_load()
me.button1.attributes("onclick")="javascript:return Myconfirm();"
end sub
{
Button1.Attributes["onclick"]="javascript:return confirm('xxxxxxxxx');"
}
in form_load:Button1.Attributes.Add("onclick", "return confirm('Delete?');")方法挺好的!!!!