//在文本框中按回车激发特定按钮事件:
//.aspx文件中写:
<script type="text/javascript">
function SubmitKeyClick(button)
{
if (event.keyCode == 13)
{
event.keyCode=9;
event.returnValue = false;
document.all[button].click();
}
}
</script>
//.cs文件中写:
Texx_Baidu.Attributes.Add("onkeydown", "SubmitKeyClick('" + Butn_Baidu.ClientID + "');");