标签:
.aspx页面加入JS代码:
function SubmitKeyClick(button) { if(event.keyCode == 13) { event.keyCode=9; event.returnValue = false; document.all[button].click(); } }
.cs页面Page_Load加入:
form1.Attributes.Add("onkeydown", "SubmitKeyClick(‘ButtonOk‘);");
标签:
原文地址:http://www.cnblogs.com/leositon/p/5936063.html