前台
function GetFocus()
{
if(event.keyCode==13)
{
document.getElementById("Button1").click();
return false;
}
}

------------------------
后台
TextBox1.Attributes.Add("onkeydown","return GetFocus();");

posted on 2006-08-14 14:55  努力前上  阅读(453)  评论(1编辑  收藏  举报